diff options
author | Rob Landley <rob@landley.net> | 2006-03-06 20:47:33 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-06 20:47:33 +0000 |
commit | dfba741457cc81eb2ed3a9d4c074fbad74aa3249 (patch) | |
tree | 588d140a71e857cb32c80d1faad6f3073b119aa7 /libbb/xfuncs.c | |
parent | 1f5e25bf3eca768b8cee1c689ac154d8f51662f9 (diff) | |
download | busybox-w32-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.gz busybox-w32-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.bz2 busybox-w32-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.zip |
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions. (That should only be on prototypes.)
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 6d54c1a79..4114090de 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #ifndef DMALLOC | 27 | #ifndef DMALLOC |
28 | #ifdef L_xmalloc | 28 | #ifdef L_xmalloc |
29 | extern void *xmalloc(size_t size) | 29 | void *xmalloc(size_t size) |
30 | { | 30 | { |
31 | void *ptr = malloc(size); | 31 | void *ptr = malloc(size); |
32 | if (ptr == NULL && size != 0) | 32 | if (ptr == NULL && size != 0) |
@@ -36,7 +36,7 @@ extern void *xmalloc(size_t size) | |||
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #ifdef L_xrealloc | 38 | #ifdef L_xrealloc |
39 | extern void *xrealloc(void *ptr, size_t size) | 39 | void *xrealloc(void *ptr, size_t size) |
40 | { | 40 | { |
41 | ptr = realloc(ptr, size); | 41 | ptr = realloc(ptr, size); |
42 | if (ptr == NULL && size != 0) | 42 | if (ptr == NULL && size != 0) |
@@ -46,7 +46,7 @@ extern void *xrealloc(void *ptr, size_t size) | |||
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #ifdef L_xcalloc | 48 | #ifdef L_xcalloc |
49 | extern void *xcalloc(size_t nmemb, size_t size) | 49 | void *xcalloc(size_t nmemb, size_t size) |
50 | { | 50 | { |
51 | void *ptr = calloc(nmemb, size); | 51 | void *ptr = calloc(nmemb, size); |
52 | if (ptr == NULL && nmemb != 0 && size != 0) | 52 | if (ptr == NULL && nmemb != 0 && size != 0) |
@@ -96,7 +96,7 @@ FILE *bb_xfopen(const char *path, const char *mode) | |||
96 | #endif | 96 | #endif |
97 | 97 | ||
98 | #ifdef L_xopen | 98 | #ifdef L_xopen |
99 | extern int bb_xopen(const char *pathname, int flags) | 99 | int bb_xopen(const char *pathname, int flags) |
100 | { | 100 | { |
101 | int ret; | 101 | int ret; |
102 | 102 | ||
@@ -109,7 +109,7 @@ extern int bb_xopen(const char *pathname, int flags) | |||
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | #ifdef L_xread | 111 | #ifdef L_xread |
112 | extern ssize_t bb_xread(int fd, void *buf, size_t count) | 112 | ssize_t bb_xread(int fd, void *buf, size_t count) |
113 | { | 113 | { |
114 | ssize_t size; | 114 | ssize_t size; |
115 | 115 | ||
@@ -122,7 +122,7 @@ extern ssize_t bb_xread(int fd, void *buf, size_t count) | |||
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | #ifdef L_xread_all | 124 | #ifdef L_xread_all |
125 | extern void bb_xread_all(int fd, void *buf, size_t count) | 125 | void bb_xread_all(int fd, void *buf, size_t count) |
126 | { | 126 | { |
127 | ssize_t size; | 127 | ssize_t size; |
128 | 128 | ||
@@ -138,7 +138,7 @@ extern void bb_xread_all(int fd, void *buf, size_t count) | |||
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | #ifdef L_xread_char | 140 | #ifdef L_xread_char |
141 | extern unsigned char bb_xread_char(int fd) | 141 | unsigned char bb_xread_char(int fd) |
142 | { | 142 | { |
143 | char tmp; | 143 | char tmp; |
144 | 144 | ||
@@ -149,7 +149,7 @@ extern unsigned char bb_xread_char(int fd) | |||
149 | #endif | 149 | #endif |
150 | 150 | ||
151 | #ifdef L_xferror | 151 | #ifdef L_xferror |
152 | extern void bb_xferror(FILE *fp, const char *fn) | 152 | void bb_xferror(FILE *fp, const char *fn) |
153 | { | 153 | { |
154 | if (ferror(fp)) { | 154 | if (ferror(fp)) { |
155 | bb_error_msg_and_die("%s", fn); | 155 | bb_error_msg_and_die("%s", fn); |
@@ -158,14 +158,14 @@ extern void bb_xferror(FILE *fp, const char *fn) | |||
158 | #endif | 158 | #endif |
159 | 159 | ||
160 | #ifdef L_xferror_stdout | 160 | #ifdef L_xferror_stdout |
161 | extern void bb_xferror_stdout(void) | 161 | void bb_xferror_stdout(void) |
162 | { | 162 | { |
163 | bb_xferror(stdout, bb_msg_standard_output); | 163 | bb_xferror(stdout, bb_msg_standard_output); |
164 | } | 164 | } |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | #ifdef L_xfflush_stdout | 167 | #ifdef L_xfflush_stdout |
168 | extern void bb_xfflush_stdout(void) | 168 | void bb_xfflush_stdout(void) |
169 | { | 169 | { |
170 | if (fflush(stdout)) { | 170 | if (fflush(stdout)) { |
171 | bb_perror_msg_and_die(bb_msg_standard_output); | 171 | bb_perror_msg_and_die(bb_msg_standard_output); |