summaryrefslogtreecommitdiff
path: root/lib/libc/gen/stringlist.c
diff options
context:
space:
mode:
authorenami <enami@NetBSD.org>1997-09-29 06:52:40 +0000
committerenami <enami@NetBSD.org>1997-09-29 06:52:40 +0000
commit9512162b01b53a10edd67a4e8d4df068bcb9b4ff (patch)
tree2ea4ee8a96af083c79253aaa495aa69cfe309f8e /lib/libc/gen/stringlist.c
parent24a227ce40c78e66a90b0b1c71c0f5445125b257 (diff)
Delete `: %m' from a format string passed to err().
Diffstat (limited to 'lib/libc/gen/stringlist.c')
-rw-r--r--lib/libc/gen/stringlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/stringlist.c b/lib/libc/gen/stringlist.c
index 562d7efd640..92ccc4e3591 100644
--- a/lib/libc/gen/stringlist.c
+++ b/lib/libc/gen/stringlist.c
@@ -1,4 +1,4 @@
-/* $NetBSD: stringlist.c,v 1.4 1997/07/21 14:07:35 jtc Exp $ */
+/* $NetBSD: stringlist.c,v 1.5 1997/09/29 06:52:40 enami Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: stringlist.c,v 1.4 1997/07/21 14:07:35 jtc Exp $");
+__RCSID("$NetBSD: stringlist.c,v 1.5 1997/09/29 06:52:40 enami Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -60,13 +60,13 @@ sl_init()
{
StringList *sl = malloc(sizeof(StringList));
if (sl == NULL)
- err(1, "stringlist: %m");
+ err(1, "stringlist");
sl->sl_cur = 0;
sl->sl_max = _SL_CHUNKSIZE;
sl->sl_str = malloc(sl->sl_max * sizeof(char *));
if (sl->sl_str == NULL)
- err(1, "stringlist: %m");
+ err(1, "stringlist");
return sl;
}
@@ -83,7 +83,7 @@ sl_add(sl, name)
sl->sl_max += _SL_CHUNKSIZE;
sl->sl_str = realloc(sl->sl_str, sl->sl_max * sizeof(char *));
if (sl->sl_str == NULL)
- err(1, "stringlist: %m");
+ err(1, "stringlist");
}
sl->sl_str[sl->sl_cur++] = name;
}