aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 23:04:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 23:04:27 +0000
commit769d1e05e668968b2432725c1844bb45e353c071 (patch)
tree2b79d2a50fc1d5bd68595db861151656d33bf2f7 /libbb
parentd77f7c3136b87540447d9d58194163e7996ea2fa (diff)
downloadbusybox-w32-769d1e05e668968b2432725c1844bb45e353c071.tar.gz
busybox-w32-769d1e05e668968b2432725c1844bb45e353c071.tar.bz2
busybox-w32-769d1e05e668968b2432725c1844bb45e353c071.zip
fix warning from needlessly-global functions
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c4
-rw-r--r--libbb/makedev.c3
-rw-r--r--libbb/perror_nomsg.c2
-rw-r--r--libbb/perror_nomsg_and_die.c2
4 files changed, 9 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 08dab26f0..bce06843b 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -876,7 +876,7 @@ static int get_next_history(void)
876 876
877#if ENABLE_FEATURE_EDITING_SAVEHISTORY 877#if ENABLE_FEATURE_EDITING_SAVEHISTORY
878/* state->flags is already checked to be nonzero */ 878/* state->flags is already checked to be nonzero */
879void load_history(const char *fromfile) 879static void load_history(const char *fromfile)
880{ 880{
881 FILE *fp; 881 FILE *fp;
882 int hi; 882 int hi;
@@ -910,7 +910,7 @@ void load_history(const char *fromfile)
910} 910}
911 911
912/* state->flags is already checked to be nonzero */ 912/* state->flags is already checked to be nonzero */
913void save_history(const char *tofile) 913static void save_history(const char *tofile)
914{ 914{
915 FILE *fp; 915 FILE *fp;
916 916
diff --git a/libbb/makedev.c b/libbb/makedev.c
index 4903e4783..81cd82baf 100644
--- a/libbb/makedev.c
+++ b/libbb/makedev.c
@@ -13,6 +13,9 @@
13#ifdef __GLIBC__ 13#ifdef __GLIBC__
14/* At least glibc has horrendously large inline for this, so wrap it */ 14/* At least glibc has horrendously large inline for this, so wrap it */
15/* uclibc people please check - do we need "&& !__UCLIBC__" above? */ 15/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
16
17/* suppress gcc "no previous prototype" warning */
18unsigned long long bb_makedev(unsigned int major, unsigned int minor);
16unsigned long long bb_makedev(unsigned int major, unsigned int minor) 19unsigned long long bb_makedev(unsigned int major, unsigned int minor)
17{ 20{
18 return makedev(major, minor); 21 return makedev(major, minor);
diff --git a/libbb/perror_nomsg.c b/libbb/perror_nomsg.c
index 8059f9fd8..62ce888ae 100644
--- a/libbb/perror_nomsg.c
+++ b/libbb/perror_nomsg.c
@@ -13,6 +13,8 @@
13//#include "libbb.h" 13//#include "libbb.h"
14extern void bb_perror_msg(const char *s, ...); 14extern void bb_perror_msg(const char *s, ...);
15 15
16/* suppress gcc "no previous prototype" warning */
17void bb_perror_nomsg(void);
16void bb_perror_nomsg(void) 18void bb_perror_nomsg(void)
17{ 19{
18 bb_perror_msg(0); 20 bb_perror_msg(0);
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c
index c416df67c..dab3df60a 100644
--- a/libbb/perror_nomsg_and_die.c
+++ b/libbb/perror_nomsg_and_die.c
@@ -13,6 +13,8 @@
13//#include "libbb.h" 13//#include "libbb.h"
14extern void bb_perror_msg_and_die(const char *s, ...); 14extern void bb_perror_msg_and_die(const char *s, ...);
15 15
16/* suppress gcc "no previous prototype" warning */
17void bb_perror_nomsg_and_die(void);
16void bb_perror_nomsg_and_die(void) 18void bb_perror_nomsg_and_die(void)
17{ 19{
18 bb_perror_msg_and_die(0); 20 bb_perror_msg_and_die(0);