svn commit: trunk/busybox/libbb

landley at busybox.net landley at busybox.net
Wed Mar 29 16:52:57 UTC 2006


Author: landley
Date: 2006-03-29 08:52:56 -0800 (Wed, 29 Mar 2006)
New Revision: 14687

Log:
More extern removal from Robert P. Day.


Modified:
   trunk/busybox/libbb/bb_pwd.c
   trunk/busybox/libbb/compare_string_array.c
   trunk/busybox/libbb/parse_number.c
   trunk/busybox/libbb/printf.c
   trunk/busybox/libbb/safe_strtol.c
   trunk/busybox/libbb/xgetularg.c


Changeset:
Modified: trunk/busybox/libbb/bb_pwd.c
===================================================================
--- trunk/busybox/libbb/bb_pwd.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/bb_pwd.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -154,7 +154,7 @@
 #include <stdlib.h>
 #include "libbb.h"
 
-extern unsigned long get_ug_id(const char *s,
+unsigned long get_ug_id(const char *s,
 		long (*__bb_getxxnam)(const char *))
 {
 	unsigned long r;

Modified: trunk/busybox/libbb/compare_string_array.c
===================================================================
--- trunk/busybox/libbb/compare_string_array.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/compare_string_array.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -17,8 +17,7 @@
 #include <string.h>
 
 /* returns the array number of the string */
-extern int
-compare_string_array(const char * const string_array[], const char *key)
+int compare_string_array(const char * const string_array[], const char *key)
 {
 	int i;
 

Modified: trunk/busybox/libbb/parse_number.c
===================================================================
--- trunk/busybox/libbb/parse_number.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/parse_number.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -27,7 +27,6 @@
 #include <assert.h>
 #include "libbb.h"
 
-extern
 unsigned long bb_xparse_number(const char *numstr,
 							   const struct suffix_mult *suffixes)
 {

Modified: trunk/busybox/libbb/printf.c
===================================================================
--- trunk/busybox/libbb/printf.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/printf.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -38,7 +38,7 @@
 #include "libbb.h"
 
 #ifdef L_bb_vfprintf
-extern int bb_vfprintf(FILE * __restrict stream,
+int bb_vfprintf(FILE * __restrict stream,
 					   const char * __restrict format,
 					   va_list arg)
 {
@@ -75,7 +75,7 @@
 #endif
 
 #ifdef L_bb_fprintf
-extern int bb_fprintf(FILE * __restrict stream,
+int bb_fprintf(FILE * __restrict stream,
 					  const char * __restrict format, ...)
 {
 	va_list arg;

Modified: trunk/busybox/libbb/safe_strtol.c
===================================================================
--- trunk/busybox/libbb/safe_strtol.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/safe_strtol.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -25,7 +25,6 @@
 #include "libbb.h"
 
 #ifdef L_safe_strtoi
-extern
 int safe_strtoi(char *arg, int* value)
 {
 	int error;
@@ -37,7 +36,6 @@
 #endif
 
 #ifdef L_safe_strtod
-extern
 int safe_strtod(char *arg, double* value)
 {
 	char *endptr;
@@ -55,7 +53,6 @@
 #endif
 
 #ifdef L_safe_strtol
-extern
 int safe_strtol(char *arg, long* value)
 {
 	char *endptr;
@@ -73,7 +70,6 @@
 #endif
 
 #ifdef L_safe_strtoul
-extern
 int safe_strtoul(char *arg, unsigned long* value)
 {
 	char *endptr;

Modified: trunk/busybox/libbb/xgetularg.c
===================================================================
--- trunk/busybox/libbb/xgetularg.c	2006-03-29 15:51:19 UTC (rev 14686)
+++ trunk/busybox/libbb/xgetularg.c	2006-03-29 16:52:56 UTC (rev 14687)
@@ -29,7 +29,6 @@
 #include "libbb.h"
 
 #ifdef L_xgetularg_bnd_sfx
-extern
 unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
 								   unsigned long lower,
 								   unsigned long upper,
@@ -92,7 +91,6 @@
 #endif
 
 #ifdef L_xgetlarg_bnd_sfx
-extern
 long bb_xgetlarg_bnd_sfx(const char *arg, int base,
 						 long lower,
 						 long upper,
@@ -124,7 +122,6 @@
 #endif
 
 #ifdef L_getlarg10_sfx
-extern
 long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
 {
 	return bb_xgetlarg_bnd_sfx(arg, 10, LONG_MIN, LONG_MAX, suffixes);
@@ -132,7 +129,6 @@
 #endif
 
 #ifdef L_xgetularg_bnd
-extern
 unsigned long bb_xgetularg_bnd(const char *arg, int base,
 							   unsigned long lower,
 							   unsigned long upper)
@@ -142,7 +138,6 @@
 #endif
 
 #ifdef L_xgetularg10_bnd
-extern
 unsigned long bb_xgetularg10_bnd(const char *arg,
 								 unsigned long lower,
 								 unsigned long upper)
@@ -152,7 +147,6 @@
 #endif
 
 #ifdef L_xgetularg10
-extern
 unsigned long bb_xgetularg10(const char *arg)
 {
 	return bb_xgetularg10_bnd(arg, 0, ULONG_MAX);




More information about the busybox-cvs mailing list