Adjust the order of variable declarations to fix a problem getting the

signal strength from Aironet cards.
This commit is contained in:
Joe Marcus Clarke 2006-01-31 02:46:29 +00:00
parent 89fc470ef1
commit fe200ce608
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154865
4 changed files with 34 additions and 6 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= gnomenetstatus
PORTVERSION= 2.12.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-netstatus/2.12

View file

@ -1,5 +1,19 @@
--- src/netstatus-sysdeps.c.orig Mon Jun 27 14:29:53 2005
+++ src/netstatus-sysdeps.c Mon Jun 27 14:30:18 2005
--- src/netstatus-sysdeps.c.orig Mon Mar 14 09:34:06 2005
+++ src/netstatus-sysdeps.c Mon Jan 30 21:44:49 2006
@@ -430,11 +430,11 @@ static inline char *
get_an_data (const char *iface,
int *signal_strength)
{
+ struct an_ltv_status *sts;
+ struct an_req areq;
#ifdef AN_RID_RSSI_MAP
struct an_ltv_rssi_map an_rssimap;
#endif
- struct an_req areq;
- struct an_ltv_status *sts;
int level;
char *error = NULL;
gboolean rssimap_valid = FALSE;
@@ -548,6 +548,8 @@ netstatus_sysdeps_read_iface_wireless_de
g_strncasecmp (iface, "wi", 2) &&
g_strncasecmp (iface, "ath", 3) &&

View file

@ -8,7 +8,7 @@
PORTNAME= gnomenetstatus
PORTVERSION= 2.12.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-netstatus/2.12

View file

@ -1,5 +1,19 @@
--- src/netstatus-sysdeps.c.orig Mon Jun 27 14:29:53 2005
+++ src/netstatus-sysdeps.c Mon Jun 27 14:30:18 2005
--- src/netstatus-sysdeps.c.orig Mon Mar 14 09:34:06 2005
+++ src/netstatus-sysdeps.c Mon Jan 30 21:44:49 2006
@@ -430,11 +430,11 @@ static inline char *
get_an_data (const char *iface,
int *signal_strength)
{
+ struct an_ltv_status *sts;
+ struct an_req areq;
#ifdef AN_RID_RSSI_MAP
struct an_ltv_rssi_map an_rssimap;
#endif
- struct an_req areq;
- struct an_ltv_status *sts;
int level;
char *error = NULL;
gboolean rssimap_valid = FALSE;
@@ -548,6 +548,8 @@ netstatus_sysdeps_read_iface_wireless_de
g_strncasecmp (iface, "wi", 2) &&
g_strncasecmp (iface, "ath", 3) &&