properly export externs thru *.h files
This commit is contained in:
parent
3ef70d43ad
commit
270c17c0e6
@ -400,6 +400,15 @@ extern int bb_cat(char** argv);
|
||||
extern int bb_echo(char** argv);
|
||||
extern int bb_test(int argc, char** argv);
|
||||
|
||||
|
||||
/* Networking */
|
||||
int create_icmp_socket(void);
|
||||
int create_icmp6_socket(void);
|
||||
/* interface.c */
|
||||
extern int interface_opt_a;
|
||||
int display_interfaces(char *ifname);
|
||||
|
||||
|
||||
#ifndef BUILD_INDIVIDUAL
|
||||
extern struct BB_applet *find_applet_by_name(const char *name);
|
||||
extern void run_applet_by_name(const char *name, int argc, char **argv);
|
||||
@ -438,8 +447,6 @@ int exists_execable(const char *filename);
|
||||
USE_DESKTOP(long long) int uncompress(int fd_in, int fd_out);
|
||||
int inflate(int in, int out);
|
||||
|
||||
int create_icmp_socket(void);
|
||||
int create_icmp6_socket(void);
|
||||
|
||||
unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port);
|
||||
void bb_lookup_host(struct sockaddr_in *s_in, const char *host);
|
||||
|
@ -257,11 +257,6 @@ static const struct options OptArray[] = {
|
||||
static int in_ether(const char *bufp, struct sockaddr *sap);
|
||||
#endif
|
||||
|
||||
#if ENABLE_FEATURE_IFCONFIG_STATUS
|
||||
extern int interface_opt_a;
|
||||
extern int display_interfaces(char *ifname);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Our main function.
|
||||
*/
|
||||
|
@ -1133,7 +1133,6 @@ static int if_print(char *ifname)
|
||||
return res;
|
||||
}
|
||||
|
||||
int display_interfaces(char *ifname);
|
||||
int display_interfaces(char *ifname)
|
||||
{
|
||||
int status;
|
||||
|
Loading…
Reference in New Issue
Block a user