SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
38
net/spectrum-tools/patches/patch-spectool_gtk_hw_registry_c
Normal file
38
net/spectrum-tools/patches/patch-spectool_gtk_hw_registry_c
Normal file
|
@ -0,0 +1,38 @@
|
|||
Index: spectool_gtk_hw_registry.c
|
||||
--- spectool_gtk_hw_registry.c.orig
|
||||
+++ spectool_gtk_hw_registry.c
|
||||
@@ -326,10 +326,10 @@ gboolean wdr_bcpoll(GIOChannel *ioch, GIOCondition con
|
||||
|
||||
spectool_phy *wdr_get_phy(spectool_device_registry *wdr, int slot) {
|
||||
if (slot < 0 || slot > wdr->max_dev)
|
||||
- return;
|
||||
+ return NULL;
|
||||
|
||||
if (wdr->devices[slot] == NULL)
|
||||
- return;
|
||||
+ return NULL;
|
||||
|
||||
return wdr->devices[slot]->phydev;
|
||||
}
|
||||
@@ -523,10 +523,10 @@ gboolean wdr_netrpoll(GIOChannel *ioch, GIOCondition c
|
||||
char err[SPECTOOL_ERROR_MAX];
|
||||
|
||||
if (wdrpr->slot < 0 || wdrpr->slot > wdrpr->wdr->max_dev)
|
||||
- return;
|
||||
+ return FALSE;
|
||||
|
||||
if (wdrpr->wdr->netservers[wdrpr->slot] == NULL)
|
||||
- return;
|
||||
+ return FALSE;
|
||||
|
||||
sr = wdrpr->wdr->netservers[wdrpr->slot]->srv;
|
||||
|
||||
@@ -537,7 +537,7 @@ gboolean wdr_netrpoll(GIOChannel *ioch, GIOCondition c
|
||||
Spectool_Alert_Dialog(err);
|
||||
|
||||
wdr_close_net(wdrpr->wdr, wdrpr->slot);
|
||||
- return;
|
||||
+ return FALSE;
|
||||
}
|
||||
|
||||
} while ((r & SPECTOOL_NETCLI_POLL_ADDITIONAL));
|
Loading…
Add table
Add a link
Reference in a new issue