diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-01-03 08:29:37 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-01-03 08:29:37 +0000 |
commit | b3fb0c72c03546e312c443de99d9246c106afc93 (patch) | |
tree | 617da6819b2e2b01ee03cbb1249d6127c25bc6d0 /net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c | |
parent | Add gnomenetstatus, a GNOME 2 applet that displays network usage similar to (diff) |
Add gnomenetwork, a suite of tools that allow for remote desktop connections,
SSH, and RSH shells, as well as a network information tool similar to MacOS
X's Netinfo.
Diffstat (limited to 'net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c')
-rw-r--r-- | net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c b/net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c new file mode 100644 index 000000000000..4048c43b48ab --- /dev/null +++ b/net/gnome-nettool/files/patch-gnome-netinfo_netinfo.c @@ -0,0 +1,41 @@ +--- gnome-netinfo/netinfo.c.orig Mon Nov 24 18:29:43 2003 ++++ gnome-netinfo/netinfo.c Sun Dec 7 01:00:52 2003 +@@ -20,6 +20,7 @@ + + #include <gnome.h> + #include <sys/types.h> ++#include <sys/socket.h> + #include <signal.h> + #include <errno.h> + #include <sys/wait.h> +@@ -253,14 +254,16 @@ + if (condition & G_IO_IN) { + g_io_channel_read_line (channel, &text, &len, NULL, NULL); + +- if (netinfo->process_line != NULL) { +- (netinfo->process_line) ((gpointer) netinfo, text, +- len, NULL); +- } ++ if (text != NULL) { ++ if (netinfo->process_line != NULL) { ++ (netinfo->process_line) ((gpointer) netinfo, text, ++ len, NULL); ++ } + +- g_free (text); ++ g_free (text); + +- return TRUE; ++ return TRUE; ++ } + } + + /* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so +@@ -285,6 +288,7 @@ + } + return FALSE; + } ++ + + void + netinfo_stop_process_command (Netinfo * netinfo) |