[Pcsclite-cvs-commit] r2333 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Thu Jan 11 18:56:32 CET 2007


Author: rousseau
Date: 2007-01-11 18:56:32 +0100 (Thu, 11 Jan 2007)
New Revision: 2333

Modified:
   trunk/PCSC/src/pcscdaemon.c
Log:
define OPT_STRING to avoid duplicating the getopt option string


Modified: trunk/PCSC/src/pcscdaemon.c
===================================================================
--- trunk/PCSC/src/pcscdaemon.c	2007-01-11 17:55:34 UTC (rev 2332)
+++ trunk/PCSC/src/pcscdaemon.c	2007-01-11 17:56:32 UTC (rev 2333)
@@ -262,6 +262,7 @@
 		{0, 0, 0, 0}
 	};
 #endif
+#define OPT_STRING "c:fdhvaeCH"
 
 	rv = 0;
 	newReaderConfig = NULL;
@@ -291,9 +292,9 @@
 	 * Handle any command line arguments
 	 */
 #ifdef  HAVE_GETOPT_LONG
-	while ((opt = getopt_long (argc, argv, "c:fdhvaeCH", long_options, &option_index)) != -1) {
+	while ((opt = getopt_long (argc, argv, OPT_STRING, long_options, &option_index)) != -1) {
 #else
-	while ((opt = getopt (argc, argv, "c:fdhvaeCH")) != -1) {
+	while ((opt = getopt (argc, argv, OPT_STRING)) != -1) {
 #endif
 		switch (opt) {
 			case 'c':




More information about the Pcsclite-cvs-commit mailing list