diff options
author | vs <vs@FreeBSD.org> | 2004-05-13 19:15:13 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-05-13 19:15:13 +0800 |
commit | 451e61e974adb25980b274d05f5cf1b2b51a7654 (patch) | |
tree | 8d8686086957ca4e45c78f92e097c53c679bfcd8 /net/wmnet2 | |
parent | d305e6b59b03f48741d07bff531b6f593df3d3f5 (diff) | |
download | freebsd-ports-gnome-451e61e974adb25980b274d05f5cf1b2b51a7654.tar.gz freebsd-ports-gnome-451e61e974adb25980b274d05f5cf1b2b51a7654.tar.zst freebsd-ports-gnome-451e61e974adb25980b274d05f5cf1b2b51a7654.zip |
Fix 64-bit issues.
PR: ports/66017
Submitted by: Andrew Belashov
Approved by: maintainer
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) |