aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-06 20:47:33 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-06 20:47:33 +0000
commit65d898209f1063e88397d8b1411d3b9df3f797ee (patch)
tree588d140a71e857cb32c80d1faad6f3073b119aa7 /libbb/xfuncs.c
parent2cb5ca3cd6461e4e9632f53b4cece1ade0282580 (diff)
downloadbusybox-w32-65d898209f1063e88397d8b1411d3b9df3f797ee.tar.gz
busybox-w32-65d898209f1063e88397d8b1411d3b9df3f797ee.tar.bz2
busybox-w32-65d898209f1063e88397d8b1411d3b9df3f797ee.zip
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c20
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
29extern void *xmalloc(size_t size) 29void *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
39extern void *xrealloc(void *ptr, size_t size) 39void *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
49extern void *xcalloc(size_t nmemb, size_t size) 49void *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
99extern int bb_xopen(const char *pathname, int flags) 99int 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
112extern ssize_t bb_xread(int fd, void *buf, size_t count) 112ssize_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
125extern void bb_xread_all(int fd, void *buf, size_t count) 125void 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
141extern unsigned char bb_xread_char(int fd) 141unsigned 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
152extern void bb_xferror(FILE *fp, const char *fn) 152void 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
161extern void bb_xferror_stdout(void) 161void 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
168extern void bb_xfflush_stdout(void) 168void 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);