[Midnightbsd-cvs] src [9298] trunk/lib/libc/gen/stringlist.c: ansi c prototype

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Mar 2 18:23:51 EST 2017


Revision: 9298
          http://svnweb.midnightbsd.org/src/?rev=9298
Author:   laffer1
Date:     2017-03-02 18:23:51 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
ansi c prototype

Modified Paths:
--------------
    trunk/lib/libc/gen/stringlist.c

Modified: trunk/lib/libc/gen/stringlist.c
===================================================================
--- trunk/lib/libc/gen/stringlist.c	2017-03-02 23:23:22 UTC (rev 9297)
+++ trunk/lib/libc/gen/stringlist.c	2017-03-02 23:23:51 UTC (rev 9298)
@@ -46,7 +46,7 @@
  * sl_init(): Initialize a string list
  */
 StringList *
-sl_init()
+sl_init(void)
 {
 	StringList *sl;
 
@@ -67,9 +67,7 @@
  * 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_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_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 Midnightbsd-cvs mailing list