diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-05-13 11:15:13 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-05-13 11:15:13 +0000 |
commit | 4aad14d520e4f49cda984e0ab8ee9390463443f0 (patch) | |
tree | 95ced34425653a3a09a9afbf0c0937af451e8ed4 /net/wmnet2 | |
parent | 0404f44c229bfa44e046b5ffea490806a4abad02 (diff) | |
download | ports-4aad14d520e4f49cda984e0ab8ee9390463443f0.tar.gz ports-4aad14d520e4f49cda984e0ab8ee9390463443f0.zip |
Notes
Diffstat (limited to 'net/wmnet2')
-rw-r--r-- | net/wmnet2/files/patch-drivers.c | 30 | ||||
-rw-r--r-- | net/wmnet2/files/patch-getopt.c | 11 |
2 files changed, 41 insertions, 0 deletions
diff --git a/net/wmnet2/files/patch-drivers.c b/net/wmnet2/files/patch-drivers.c new file mode 100644 index 000000000000..2144ec197132 --- /dev/null +++ b/net/wmnet2/files/patch-drivers.c @@ -0,0 +1,30 @@ +--- drivers.c.orig Tue Apr 27 09:22:02 2004 ++++ drivers.c Tue Apr 27 09:32:19 2004 +@@ -47,7 +47,7 @@ + #include <sys/errno.h> + + int id = 0; /* interface id */ +-int len = 0; /* sizeof libmibdata */ ++size_t len = 0; /* sizeof libmibdata */ + struct ifmibdata *data = NULL; + + int sysctl_test(void); +@@ -128,7 +128,7 @@ + + char* available_drivers(void) { + int ind = 0; +- int len = 0; ++ size_t len = 0; + char *string, *ptr; + while(drivers[ind].name != NULL) { + len += strlen(drivers[ind].name) + 1; +@@ -464,7 +464,8 @@ + + int sysctl_test(void) { + struct ifmibdata tempndata; +- int numifaces, len2; ++ int numifaces; ++ size_t len2; + int mib[5], datamib[6]; + int i; + diff --git a/net/wmnet2/files/patch-getopt.c b/net/wmnet2/files/patch-getopt.c new file mode 100644 index 000000000000..e40f83fa564e --- /dev/null +++ b/net/wmnet2/files/patch-getopt.c @@ -0,0 +1,11 @@ +--- getopt.c.orig Fri Oct 9 10:59:00 1998 ++++ getopt.c Tue Apr 27 09:57:46 2004 +@@ -209,6 +209,8 @@ + + char *getenv (); + extern int strncmp(const char *s1, const char *s2, size_t len); ++extern int strcmp(const char *, const char *); ++extern size_t strlen(const char *); + + static char * + my_index (str, chr) |