summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-04-23 13:03:01 +0000
committereadler <eadler@FreeBSD.org>2013-04-23 13:03:01 +0000
commit743330219f4ea0c9243167000ca5a4ad2dd1280e (patch)
treeab74fcc2c578c18ff3f706399cea6874a31612f7 /lib/libc
parent377a0c21181e5f0dfd862f5b16c06609adf516a4 (diff)
downloadFreeBSD-src-743330219f4ea0c9243167000ca5a4ad2dd1280e.zip
FreeBSD-src-743330219f4ea0c9243167000ca5a4ad2dd1280e.tar.gz
Switch from K&R prototypes to modern C
Reviewed by: jilles Approved by: cperciva (mentor) MFC After: 3 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/stringlist.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/libc/gen/stringlist.c b/lib/libc/gen/stringlist.c
index e0db3b6..9f3c3e8 100644
--- a/lib/libc/gen/stringlist.c
+++ b/lib/libc/gen/stringlist.c
@@ -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;
OpenPOWER on IntegriCloud