fix warning from needlessly-global functions
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user