Author: marek
Date: 2010-05-26 16:13:49 +0200 (Wed, 26 May 2010)
New Revision: 1681
Modified:
branches/batctl-0.2.x/sys.c
Log:
batctl: fix regression - don't show unused interfaces
Due to the sysfs single value conversion "batctl if" would show
even unused interfaces and their status.
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>
Modified: branches/batctl-0.2.x/sys.c
===================================================================
--- branches/batctl-0.2.x/sys.c 2010-05-26 14:10:57 UTC (rev 1680)
+++ branches/batctl-0.2.x/sys.c 2010-05-26 14:13:49 UTC (rev 1681)
@@ -86,7 +86,7 @@
if (line_ptr[strlen(line_ptr) - 1] == '\n')
line_ptr[strlen(line_ptr) - 1] = '\0';
- if (strcmp(line_ptr, "status: none") == 0)
+ if (strcmp(line_ptr, "none") == 0)
goto free_line;
free(line_ptr);