summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-15 19:46:43 +0000
committerDenis Vlasenko2007-03-15 19:46:43 +0000
commit1cc70225e7bfee447543ea38b08c7caeb6492c8b (patch)
treea783bb5976def93f723a75c930671e2b31c1f1e7 /include/libbb.h
parent54d14ca1a2aa965d13055719e233032193a4daf2 (diff)
downloadbusybox-1cc70225e7bfee447543ea38b08c7caeb6492c8b.zip
busybox-1cc70225e7bfee447543ea38b08c7caeb6492c8b.tar.gz
networking/interface.c: was doing really strange caching of fd's
open for getting ifconfig data - ??! Simplified all that. -200 bytes.
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9a6966d..90fb0ad 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -137,9 +137,6 @@ struct aftype {
/* may modify src */
int (*getmask) (char *src, struct sockaddr * mask, char *name);
-
- int fd;
- char *flag_file;
};
/* This structure defines hardware protocols and their handlers. */
@@ -530,11 +527,9 @@ int bbunpack(char **argv,
int create_icmp_socket(void);
int create_icmp6_socket(void);
/* interface.c */
-struct aftype;
-struct hwtype;
extern int interface_opt_a;
int display_interfaces(char *ifname);
-struct aftype *get_aftype(const char *name);
+const struct aftype *get_aftype(const char *name);
const struct hwtype *get_hwtype(const char *name);
const struct hwtype *get_hwntype(int type);