[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] patch for tools/crypto



Hi there,

here's a small patch i made. The help output from the crypto tool was very ugly. Now it looks more friendly.

I'm not sure if i did it right with diff, it would be nice when some more expirienced coder will overlook the patch.

bye
Bernd
--- main.c.org	2012-02-27 23:55:52.000000000 +0100
+++ main.c	2012-02-28 00:24:59.000000000 +0100
@@ -295,30 +295,28 @@
 	puts (MSG_GREET);
 	
 	printf (
-"Usage: \
-	%s [options] device ... \
-device: something like d: or L: \
-useful options: \
-    -a# [or --action #]:  select action (encipher, decipher, changekey) \
-                          default is encipher \
-    -b# [or --buffer #]:  specify buffer size in kb \
-                          default is %ikb \
-    -c# [or --cipher #]:  select cipher algorithm (blowfish) \
-                          default is blowfish \
-    -m# [or --mode #]:    select mode (robust, fast) \
-                          default is robust \
-    -h  [or --help]:      print this message \
-    -q  [or --quiet]:     be quiet \
-    -r# [or --restart #]: restart interrupted session, parameter \
-                          is the generated *.sav file in robust mode \
-    -t  [or --simulate]:  testing mode, simulate action without any write \
-    -v  [or --version]:   print version \
-dangerous options, \
-for professionals only: \
-    -e# [or --end #]:     set end position for action \
-                          default is partition end \
-    -s# [or --start #]:   set start position for action \
-                          default is partition start (512) \
+"Usage: %s [options] device ... \n\
+device: something like d: or L: \n\n\
+useful options: \n\
+    -a# [or --action #]:  select action (encipher, decipher, changekey) \n\
+                          default is encipher \n\
+    -b# [or --buffer #]:  specify buffer size in kb \n\
+                          default is %ikb \n\
+    -c# [or --cipher #]:  select cipher algorithm (blowfish) \n\
+                          default is blowfish \n\
+    -m# [or --mode #]:    select mode (robust, fast) \n\
+                          default is robust \n\
+    -h  [or --help]:      print this message \n\
+    -q  [or --quiet]:     be quiet \n\
+    -r# [or --restart #]: restart interrupted session, parameter \n\
+                          is the generated *.sav file in robust mode \n\
+    -t  [or --simulate]:  testing mode, simulate action without any write \n\
+    -v  [or --version]:   print version \n\n\
+dangerous options, for professionals only: \n\
+    -e# [or --end #]:     set end position for action \n\
+                          default is partition end \n\
+    -s# [or --start #]:   set start position for action \n\
+                          default is partition start (512) \n\
 ", basename (myname), bufsize / 1024);
 	
 	fflush (stdout);