aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_stringlist.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:22:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:22:59 +0000
commitea3a546595c994f7d63049af16eecab1660ef4fa (patch)
tree878fffc5e32865bc50e1b26525056762d1b60e44 /compat_stringlist.c
parent7578dcc6592a42a9ad7fbebacd5fcdfba0238f9e (diff)
downloadmandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.tar.gz
mandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.tar.zst
mandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.zip
* remove FreeBSDisms
* purge and sort headers * add build and compat glue * and LICENSE information for soelim(1)
Diffstat (limited to 'compat_stringlist.c')
-rw-r--r--compat_stringlist.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/compat_stringlist.c b/compat_stringlist.c
index a09a8e70..2b26e200 100644
--- a/compat_stringlist.c
+++ b/compat_stringlist.c
@@ -1,5 +1,6 @@
+/* $Id: compat_stringlist.c,v 1.2 2015/05/20 22:22:59 schwarze Exp $ */
/*
- * Copyright (c) 1994 Christos Zoulas
+ * Copyright (c) 1994 Christos Zoulas <christos@netbsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,19 +27,10 @@
* SUCH DAMAGE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $";
-#endif /* LIBC_SCCS and not lint */
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include "namespace.h"
-#include <stdio.h>
-#include <string.h>
#include <err.h>
#include <stdlib.h>
-#include <stringlist.h>
-#include "un-namespace.h"
+#include <string.h>
+#include "compat_stringlist.h"
#define _SL_CHUNKSIZE 20
@@ -52,13 +44,13 @@ sl_init(void)
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;
}