Project : madwifi
Revision : 2574
Author : proski (Pavel Roskin)
Date : 2007-07-11 19:00:15 +0200 (Wed, 11 Jul 2007)
Log Message :
Fix sparse warning about misuse of 0 in DEV_NAME
Affected Files:
* trunk/ath/if_ath.c updated
Modified: trunk/ath/if_ath.c
===================================================================
--- trunk/ath/if_ath.c 2007-07-11 14:14:24 UTC (rev 2573)
+++ trunk/ath/if_ath.c 2007-07-11 17:00:15 UTC (rev 2574)
@@ -280,7 +280,7 @@
static int outdoor = -1;
static int xchanmode = -1;
-#define DEV_NAME(_d) ((0 == _d || 0 == _d->name || 0 == strncmp(_d->name,
"wifi%d", 6)) ? "MadWifi" : _d->name)
+#define DEV_NAME(_d) ((!_d || !_d->name || !strncmp(_d->name, "wifi%d", 6)) ?
"MadWifi" : _d->name)
static const char *hal_status_desc[] = {
"No error",
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|