[evolution-patches] Connector warning fixes



Attached is a fix for command-line arg parsing in
evolution-exchange/storage/migr-test

OK to commit?

Dave
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.20
diff -u -p -r1.20 ChangeLog
--- ChangeLog	19 May 2004 14:56:56 -0000	1.20
+++ ChangeLog	19 May 2004 15:40:45 -0000
@@ -1,3 +1,8 @@
+2004-05-19  David Malcolm  <dmalcolm redhat com>
+
+	* storage/migr-test.c (main): Fixed command-line arg parsing
+	of major, minor and revision
+
 2004-05-19  Dan Winship  <danw novell com>
 
 	* storage/exchange-hierarchy-favorites.c: Actually, we weren't
Index: storage/migr-test.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/migr-test.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 migr-test.c
--- storage/migr-test.c	11 May 2004 15:15:58 -0000	1.1.1.1
+++ storage/migr-test.c	19 May 2004 15:40:45 -0000
@@ -43,9 +43,9 @@ int
 main (int argc, char **argv)
 {
 	gboolean ret=FALSE;
-	const CORBA_short major=1;
-	const CORBA_short minor=4;
-	const CORBA_short revision=0;
+	CORBA_short major=1;
+	CORBA_short minor=4;
+	CORBA_short revision=0;
 	gchar *user = "u1";
 	gchar *server = "164.99.155.182";
 	gchar *source = "/root/evolution";
@@ -72,10 +72,10 @@ main (int argc, char **argv)
 				major = atoi(optarg);
 				break;
 			case 'm':
-				minor = (CORBA_short) optarg;
+				minor = atoi(optarg);
 				break;
 			case 'r':
-				revision = (CORBA_short) optarg;
+				revision = atoi(optarg);
 				break;
 			case 'u':
 				user = optarg;


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