svn commit: r249910 - stable/9/lib/libc/gen
Eitan Adler
eadler at FreeBSD.org
Fri Apr 26 00:45:01 UTC 2013
Author: eadler
Date: Fri Apr 26 00:45:00 2013
New Revision: 249910
URL: http://svnweb.freebsd.org/changeset/base/249910
Log:
MFC r249801:
Switch from K&R prototypes to modern C
Modified:
stable/9/lib/libc/gen/stringlist.c
Directory Properties:
stable/9/lib/libc/ (props changed)
Modified: stable/9/lib/libc/gen/stringlist.c
==============================================================================
--- stable/9/lib/libc/gen/stringlist.c Fri Apr 26 00:00:14 2013 (r249909)
+++ stable/9/lib/libc/gen/stringlist.c Fri Apr 26 00:45:00 2013 (r249910)
@@ -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;
More information about the svn-src-stable-9
mailing list