aboutsummaryrefslogtreecommitdiff
path: root/libbb/safe_strncpy.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-03-06 20:47:33 +0000
committerRob Landley <rob@landley.net>2006-03-06 20:47:33 +0000
commitdfba741457cc81eb2ed3a9d4c074fbad74aa3249 (patch)
tree588d140a71e857cb32c80d1faad6f3073b119aa7 /libbb/safe_strncpy.c
parent1f5e25bf3eca768b8cee1c689ac154d8f51662f9 (diff)
downloadbusybox-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.gz
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions. (That should only be on prototypes.)
Diffstat (limited to 'libbb/safe_strncpy.c')
-rw-r--r--libbb/safe_strncpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c
index 2016e6b52..d4275698c 100644
--- a/libbb/safe_strncpy.c
+++ b/libbb/safe_strncpy.c
@@ -25,7 +25,7 @@
/* Like strncpy but make sure the resulting string is always 0 terminated. */
-extern char * safe_strncpy(char *dst, const char *src, size_t size)
+char * safe_strncpy(char *dst, const char *src, size_t size)
{
dst[size-1] = '\0';
return strncpy(dst, src, size-1);