[Xfce4-commits] [panel-plugins/xfce4-wavelan-plugin] 01/01: fix "Suspicious condition (assignment + comparison)" warnings by moving parenthesis (bug #14632)

noreply at xfce.org noreply at xfce.org
Sat Sep 1 09:33:58 CEST 2018


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-wavelan-plugin.

commit 5f4c12a585fab6e1b5ed246ccd29699768f64db2
Author: Landry Breuil <landry at xfce.org>
Date:   Sat Sep 1 09:33:50 2018 +0200

    fix "Suspicious condition (assignment + comparison)" warnings by moving parenthesis (bug #14632)
---
 panel-plugin/wi_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/wi_linux.c b/panel-plugin/wi_linux.c
index c16d6ab..8bb23e1 100644
--- a/panel-plugin/wi_linux.c
+++ b/panel-plugin/wi_linux.c
@@ -156,7 +156,7 @@ wi_query(struct wi_device *device, struct wi_stats *stats)
   wreq.u.essid.pointer = (caddr_t) essid;
   wreq.u.essid.length = IW_ESSID_MAX_SIZE + 1;
   wreq.u.essid.flags = 0;
-  if ((result = ioctl(device->socket, SIOCGIWESSID, &wreq) < 0)) {
+  if ((result = ioctl(device->socket, SIOCGIWESSID, &wreq)) < 0) {
     TRACE ("Couldn't get ESSID");
     g_strlcpy(stats->ws_netname, "", WI_MAXSTRLEN);
   } else {
@@ -167,7 +167,7 @@ wi_query(struct wi_device *device, struct wi_stats *stats)
   }
 
   /* Get bit rate */
-  if ((result = ioctl(device->socket, SIOCGIWRATE, &wreq) < 0)) {
+  if ((result = ioctl(device->socket, SIOCGIWRATE, &wreq)) < 0) {
     TRACE ("Couldn't get bit-rate");
     stats->ws_rate = 0;
   } else {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list