summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2006-03-29 16:52:56 +0000
committerRob Landley2006-03-29 16:52:56 +0000
commitca087713f24d3e856c46829c005d3aa43a5dbdf1 (patch)
treebdec03f33a971a96f36c06dd5e2e971720718604
parentcb8d4319a3ef49ed1d08d0b1a4b6ad4fc823f769 (diff)
downloadbusybox-ca087713f24d3e856c46829c005d3aa43a5dbdf1.zip
busybox-ca087713f24d3e856c46829c005d3aa43a5dbdf1.tar.gz
More extern removal from Robert P. Day.
-rw-r--r--libbb/bb_pwd.c2
-rw-r--r--libbb/compare_string_array.c3
-rw-r--r--libbb/parse_number.c1
-rw-r--r--libbb/printf.c4
-rw-r--r--libbb/safe_strtol.c4
-rw-r--r--libbb/xgetularg.c6
6 files changed, 4 insertions, 16 deletions
diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c
index 7d7600c..68721dd 100644
--- a/libbb/bb_pwd.c
+++ b/libbb/bb_pwd.c
@@ -154,7 +154,7 @@ char * bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix)
#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;
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
index e4191e3..529d294 100644
--- a/libbb/compare_string_array.c
+++ b/libbb/compare_string_array.c
@@ -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;
diff --git a/libbb/parse_number.c b/libbb/parse_number.c
index 5262239..ffff666 100644
--- a/libbb/parse_number.c
+++ b/libbb/parse_number.c
@@ -27,7 +27,6 @@
#include <assert.h>
#include "libbb.h"
-extern
unsigned long bb_xparse_number(const char *numstr,
const struct suffix_mult *suffixes)
{
diff --git a/libbb/printf.c b/libbb/printf.c
index 7eb60a9..2e79555 100644
--- a/libbb/printf.c
+++ b/libbb/printf.c
@@ -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 @@ int bb_vprintf(const char * __restrict format, va_list arg)
#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;
diff --git a/libbb/safe_strtol.c b/libbb/safe_strtol.c
index fcbdba8..17ddbbd 100644
--- a/libbb/safe_strtol.c
+++ b/libbb/safe_strtol.c
@@ -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 @@ int safe_strtoi(char *arg, int* value)
#endif
#ifdef L_safe_strtod
-extern
int safe_strtod(char *arg, double* value)
{
char *endptr;
@@ -55,7 +53,6 @@ int safe_strtod(char *arg, double* value)
#endif
#ifdef L_safe_strtol
-extern
int safe_strtol(char *arg, long* value)
{
char *endptr;
@@ -73,7 +70,6 @@ int safe_strtol(char *arg, long* value)
#endif
#ifdef L_safe_strtoul
-extern
int safe_strtoul(char *arg, unsigned long* value)
{
char *endptr;
diff --git a/libbb/xgetularg.c b/libbb/xgetularg.c
index 8d793f3..44b8a1d 100644
--- a/libbb/xgetularg.c
+++ b/libbb/xgetularg.c
@@ -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 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
#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 @@ long bb_xgetlarg_bnd_sfx(const char *arg, int base,
#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 @@ long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
#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 @@ unsigned long bb_xgetularg_bnd(const char *arg, int base,
#endif
#ifdef L_xgetularg10_bnd
-extern
unsigned long bb_xgetularg10_bnd(const char *arg,
unsigned long lower,
unsigned long upper)
@@ -152,7 +147,6 @@ unsigned long bb_xgetularg10_bnd(const char *arg,
#endif
#ifdef L_xgetularg10
-extern
unsigned long bb_xgetularg10(const char *arg)
{
return bb_xgetularg10_bnd(arg, 0, ULONG_MAX);