From b8eeeb3aea8a45d48f5c63fe055cdd35ebf95ed0 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Wed, 7 Mar 2012 09:58:47 +0100 Subject: [PATCH] xsys: minor update on comment, added link to bug --- src/xsys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xsys.c b/src/xsys.c index a3d8ac30..a5df0342 100644 --- a/src/xsys.c +++ b/src/xsys.c @@ -252,7 +252,6 @@ int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf) int device_bitrate(const char *ifname) { int speed_c, speed_w; - /* Probe for speed rates */ speed_c = ethtool_bitrate(ifname); speed_w = wireless_bitrate(ifname); return (speed_c == 0 ? speed_w : speed_c); @@ -534,7 +533,6 @@ int poll_error_maybe_die(int sock, struct pollfd *pfd) if (pfd->revents & POLLERR) { int tmp; errno = 0; - /* recv is more specififc on the error */ if (recv(sock, &tmp, sizeof(tmp), MSG_PEEK) >= 0) return POLL_NEXT_PKT; if (errno == ENETDOWN) @@ -555,7 +553,8 @@ static inline char *next_token(char *q, int sep) /* * glibc defines this as a macro and gcc throws a false * positive ``logical ‘&&’ with non-zero constant will - * always evaluate as true'' in older versions. + * always evaluate as true'' in older versions. See: + * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36513 */ if (q) q++; -- 2.11.4.GIT