diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-20 22:22:59 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-20 22:22:59 +0000 |
commit | 8565e125327b04666ff3fc5a916a86ddbdf4b86f (patch) | |
tree | e775b9bd1f518faf4fb1713402e3585cca708864 /compat_stringlist.c | |
parent | 77dfa06b4b522e2904138dd90d9b4fb4dd301fd6 (diff) | |
download | mandoc-8565e125327b04666ff3fc5a916a86ddbdf4b86f.tar.gz |
* 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.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/compat_stringlist.c b/compat_stringlist.c index a09a8e70..1068b461 100644 --- a/compat_stringlist.c +++ b/compat_stringlist.c @@ -1,5 +1,6 @@ +/* $Id$ */ /* - * 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; } |