From ea3a546595c994f7d63049af16eecab1660ef4fa Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 20 May 2015 22:22:59 +0000 Subject: * remove FreeBSDisms * purge and sort headers * add build and compat glue * and LICENSE information for soelim(1) --- compat_stringlist.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'compat_stringlist.c') 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 * 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 -__FBSDID("$FreeBSD$"); - -#include "namespace.h" -#include -#include #include #include -#include -#include "un-namespace.h" +#include +#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; } -- cgit v1.2.3