dslinux/user/wfcdump wfcdump.c

stsp stsp at user.in-berlin.de
Wed Jun 28 00:07:24 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/wfcdump
In directory antilope:/tmp/cvs-serv6739

Modified Files:
	wfcdump.c 
Log Message:
Quote ssid.
Remove superfluous variable 'status'.


Index: wfcdump.c
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/wfcdump/wfcdump.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- wfcdump.c	26 Jun 2006 10:17:41 -0000	1.7
+++ wfcdump.c	27 Jun 2006 22:07:22 -0000	1.8
@@ -125,7 +125,7 @@
 		die();
 	if (fgets(ssid, sizeof(ssid), f) == NULL)
 		die();
-	printf("%s\n", ssid);
+	printf("\"%s\"\n", ssid);
 }
 
 void print_wep()
@@ -144,7 +144,6 @@
 int main(int argc, char *argv[])
 {
 	int ch, i;
-	unsigned long status ;
 
 	while ((ch = getopt(argc, argv, "c:h")) != -1) {
 		switch (ch) {
@@ -174,10 +173,7 @@
 		exit(1);
 	}
 
-	status = read_ulong(STATUS_OFFSET);
-
-	if ( status != 0 )
-	{
+	if (read_ulong(STATUS_OFFSET) != 0) {
 		fprintf(stderr, "wfcdump: configuration %i not configured\n",
 				config + 1);
 		exit(1);




More information about the dslinux-commit mailing list