Date: Tue, 23 Apr 2013 13:03:01 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249801 - head/lib/libc/gen Message-ID: <201304231303.r3ND31JA025036@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Tue Apr 23 13:03:01 2013 New Revision: 249801 URL: http://svnweb.freebsd.org/changeset/base/249801 Log: Switch from K&R prototypes to modern C Reviewed by: jilles Approved by: cperciva (mentor) MFC After: 3 days Modified: head/lib/libc/gen/stringlist.c Modified: head/lib/libc/gen/stringlist.c ============================================================================== --- head/lib/libc/gen/stringlist.c Tue Apr 23 13:02:57 2013 (r249800) +++ head/lib/libc/gen/stringlist.c Tue Apr 23 13:03:01 2013 (r249801) @@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$"); * sl_init(): Initialize a string list */ StringList * -sl_init() +sl_init(void) { StringList *sl; @@ -67,9 +67,7 @@ sl_init() * sl_add(): Add an item to the string list */ int -sl_add(sl, name) - StringList *sl; - char *name; +sl_add(StringList *sl, char *name) { if (sl->sl_cur == sl->sl_max - 1) { sl->sl_max += _SL_CHUNKSIZE; @@ -86,9 +84,7 @@ sl_add(sl, name) * sl_free(): Free a stringlist */ void -sl_free(sl, all) - StringList *sl; - int all; +sl_free(StringList *sl, int all) { size_t i; @@ -108,9 +104,7 @@ sl_free(sl, all) * sl_find(): Find a name in the string list */ char * -sl_find(sl, name) - StringList *sl; - char *name; +sl_find(StringList *sl, char *name) { size_t i;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304231303.r3ND31JA025036>