summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-22 23:04:27 +0000
committerDenis Vlasenko2007-01-22 23:04:27 +0000
commit769d1e05e668968b2432725c1844bb45e353c071 (patch)
tree2b79d2a50fc1d5bd68595db861151656d33bf2f7 /libbb
parentd77f7c3136b87540447d9d58194163e7996ea2fa (diff)
downloadbusybox-769d1e05e668968b2432725c1844bb45e353c071.zip
busybox-769d1e05e668968b2432725c1844bb45e353c071.tar.gz
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 08dab26..bce0684 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -876,7 +876,7 @@ static int get_next_history(void)
#if ENABLE_FEATURE_EDITING_SAVEHISTORY
/* state->flags is already checked to be nonzero */
-void load_history(const char *fromfile)
+static void load_history(const char *fromfile)
{
FILE *fp;
int hi;
@@ -910,7 +910,7 @@ void load_history(const char *fromfile)
}
/* state->flags is already checked to be nonzero */
-void save_history(const char *tofile)
+static void save_history(const char *tofile)
{
FILE *fp;
diff --git a/libbb/makedev.c b/libbb/makedev.c
index 4903e47..81cd82b 100644
--- a/libbb/makedev.c
+++ b/libbb/makedev.c
@@ -13,6 +13,9 @@
#ifdef __GLIBC__
/* At least glibc has horrendously large inline for this, so wrap it */
/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
+
+/* suppress gcc "no previous prototype" warning */
+unsigned long long bb_makedev(unsigned int major, unsigned int minor);
unsigned long long bb_makedev(unsigned int major, unsigned int minor)
{
return makedev(major, minor);
diff --git a/libbb/perror_nomsg.c b/libbb/perror_nomsg.c
index 8059f9f..62ce888 100644
--- a/libbb/perror_nomsg.c
+++ b/libbb/perror_nomsg.c
@@ -13,6 +13,8 @@
//#include "libbb.h"
extern void bb_perror_msg(const char *s, ...);
+/* suppress gcc "no previous prototype" warning */
+void bb_perror_nomsg(void);
void bb_perror_nomsg(void)
{
bb_perror_msg(0);
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c
index c416df6..dab3df6 100644
--- a/libbb/perror_nomsg_and_die.c
+++ b/libbb/perror_nomsg_and_die.c
@@ -13,6 +13,8 @@
//#include "libbb.h"
extern void bb_perror_msg_and_die(const char *s, ...);
+/* suppress gcc "no previous prototype" warning */
+void bb_perror_nomsg_and_die(void);
void bb_perror_nomsg_and_die(void)
{
bb_perror_msg_and_die(0);