[Lcdproc] lcdproc iface patch
Eric Pooch
epooch@cox.net
Sat Dec 2 22:07:01 2006
--Apple-Mail-10--41096878
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
This patch fixes a bug in clients/lcdproc/iface.c that would output
the name of the last interface in the list as "(null)". Was this a
problem for anybody else?
--Apple-Mail-10--41096878
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name=lcdproc_iface.c.patch
Content-Disposition: attachment;
filename=lcdproc_iface.c.patch
--- iface.c.old 2006-10-01 00:00:30.000000000 -0700
+++ iface.c 2006-12-02 13:55:43.000000000 -0800
@@ -392,12 +392,12 @@
format_value_multi_interface(speed, rc_speed, unit_label);
format_value_multi_interface(speed1, tr_speed, unit_label);
sock_printf(sock, "widget_set I i%1d 1 %1d {%5.5s U:%.4s D:%.4s}\n",
- index, index+1, iface[index].alias, speed1, speed);
+ index, index+1, iface->alias, speed1, speed);
}
else { /* Interface is down */
get_time_string(speed, iface->last_online);
sock_printf(sock, "widget_set I i%1d 1 %1d {%5.5s NA (%s)}\n",
- index, index+1, iface[index].alias, speed);
+ index, index+1, iface->alias, speed);
}
}
} /* actualize_speed_screen() */
--Apple-Mail-10--41096878
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--Eric
--Apple-Mail-10--41096878--