[BusyBox-cvs] busybox/applets applets.c,1.17,1.18

Glenn McGrath bug1 at busybox.net
Thu Nov 28 21:49:10 UTC 2002


Update of /var/cvs/busybox/applets
In directory winder:/tmp/cvs-serv31322/applets

Modified Files:
	applets.c 
Log Message:
I miscalculated on this one, change it back


Index: applets.c
===================================================================
RCS file: /var/cvs/busybox/applets/applets.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- applets.c	28 Nov 2002 08:33:04 -0000	1.17
+++ applets.c	28 Nov 2002 21:49:06 -0000	1.18
@@ -80,6 +80,7 @@
 
 extern void show_usage(void)
 {
+	const char *format_string;
 	const char *usage_string = usage_messages;
 	int i;
 
@@ -89,11 +90,11 @@
 		}
 	}
 
-	if(*usage_string == '\b') {
-		fprintf(stderr, "%s\n\nNo help available.\n\n", full_version);
-	} else {
-		fprintf(stderr, "%s\n\nUsage: %s %s\n\n", full_version, applet_using->name, usage_string);
-	}
+	format_string = "%s\n\nUsage: %s %s\n\n";
+	if(*usage_string == '\b')
+		format_string = "%s\n\nNo help available.\n\n";
+	fprintf(stderr, format_string, full_version, applet_using->name, usage_string);
+
 	exit(EXIT_FAILURE);
 }
 




More information about the busybox-cvs mailing list