[Ocfs2-tools-commits] mfasheh commits r597 - trunk/libo2dlm

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jan 26 15:51:37 CST 2005


Author: mfasheh
Date: 2005-01-26 15:51:35 -0600 (Wed, 26 Jan 2005)
New Revision: 597

Modified:
   trunk/libo2dlm/o2dlm_test.c
Log:
* properly initialize our error table

* don't spew on empty input



Modified: trunk/libo2dlm/o2dlm_test.c
===================================================================
--- trunk/libo2dlm/o2dlm_test.c	2005-01-26 19:53:35 UTC (rev 596)
+++ trunk/libo2dlm/o2dlm_test.c	2005-01-26 21:51:35 UTC (rev 597)
@@ -183,10 +183,8 @@
 		return -1;
 
 	next = strtok(cbuf, " \n");
-	if (!next) {
-		fprintf(stderr, "invalid input!\n");
+	if (!next)
 		goto again;
-	}
 
 	if (decode_type(command, next)) {
 		fprintf(stderr, "Invalid command type \"%s\"\n", next);
@@ -279,6 +277,8 @@
 		return 0;
 	}
 
+	initialize_o2dl_error_table();
+
 	dlmfs_path = argv[1];
 	printf("Using fs at %s\n", dlmfs_path);
 



More information about the Ocfs2-tools-commits mailing list