summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-09-21 12:27:34 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-09-21 12:27:34 +0800
commit9c9ef54233cf9d47c5555ad77ba1d402f44b5da0 (patch)
tree9d2586ddaddaa188af9cba8d6d3aba9a440af3fa /net
parentde44e8ad0bdec239f39450d0a7f77ecdb3000f61 (diff)
downloadmarcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar.gz
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar.bz2
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar.lz
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar.xz
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.tar.zst
marcuscom-ports-9c9ef54233cf9d47c5555ad77ba1d402f44b5da0.zip
Fix the build on 5.X.
Reported by: mezz git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2883 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net')
-rw-r--r--net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c8
-rw-r--r--net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
index 8da2df3ff..a13a23161 100644
--- a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
+++ b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
@@ -1,5 +1,5 @@
--- src/netstatus-sysdeps.c.orig Fri Jul 30 04:19:31 2004
-+++ src/netstatus-sysdeps.c Mon Sep 20 17:34:19 2004
++++ src/netstatus-sysdeps.c Tue Sep 21 00:27:19 2004
@@ -35,6 +35,16 @@
#include <glib.h>
#include <libgnome/gnome-i18n.h>
@@ -30,7 +30,7 @@
+ struct ifreq ifr;
+ int s;
+
-+ memcpy ((char *) &ifr, 0, sizeof (ifr));
++ memset (&ifr, 0, sizeof (ifr));
+
+ strlcpy (ifr.ifr_name, iface, sizeof (ifr.ifr_name));
+ ifr.ifr_data = (caddr_t) req;
@@ -99,7 +99,7 @@
+ int level;
+ char *error = NULL;
+
-+ memcpy ((char *) &wreq, 0, sizeof (wreq));
++ memset (&wreq, 0, sizeof (wreq));
+
+ wreq.wi_len = WI_MAX_DATALEN;
+ wreq.wi_type = WI_RID_COMMS_QUALITY;
@@ -129,7 +129,7 @@
+ return error;
+ nstations = *(int *)wreq.wi_val;
+ if (nstations > 0) {
-+ w = (struct wi_apinfo *)(((char *)&wreq.wi_val) sizeof(int));
++ w = (struct wi_apinfo *)(((char *)&wreq.wi_val) + sizeof(int));
+ signal_strength = (long int)w->signal;
+ }
+
diff --git a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c
index 8da2df3ff..a13a23161 100644
--- a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c
+++ b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c
@@ -1,5 +1,5 @@
--- src/netstatus-sysdeps.c.orig Fri Jul 30 04:19:31 2004
-+++ src/netstatus-sysdeps.c Mon Sep 20 17:34:19 2004
++++ src/netstatus-sysdeps.c Tue Sep 21 00:27:19 2004
@@ -35,6 +35,16 @@
#include <glib.h>
#include <libgnome/gnome-i18n.h>
@@ -30,7 +30,7 @@
+ struct ifreq ifr;
+ int s;
+
-+ memcpy ((char *) &ifr, 0, sizeof (ifr));
++ memset (&ifr, 0, sizeof (ifr));
+
+ strlcpy (ifr.ifr_name, iface, sizeof (ifr.ifr_name));
+ ifr.ifr_data = (caddr_t) req;
@@ -99,7 +99,7 @@
+ int level;
+ char *error = NULL;
+
-+ memcpy ((char *) &wreq, 0, sizeof (wreq));
++ memset (&wreq, 0, sizeof (wreq));
+
+ wreq.wi_len = WI_MAX_DATALEN;
+ wreq.wi_type = WI_RID_COMMS_QUALITY;
@@ -129,7 +129,7 @@
+ return error;
+ nstations = *(int *)wreq.wi_val;
+ if (nstations > 0) {
-+ w = (struct wi_apinfo *)(((char *)&wreq.wi_val) sizeof(int));
++ w = (struct wi_apinfo *)(((char *)&wreq.wi_val) + sizeof(int));
+ signal_strength = (long int)w->signal;
+ }
+