aboutsummaryrefslogtreecommitdiffhomepage
path: root/mimedb.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-27 00:55:51 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-27 00:55:51 +1000
commitb5b49e7a4d5e97884f17ee3ed000635be5c999ac (patch)
tree839daf950dc81ec0c1e5320319a2ffe80558d797 /mimedb.c
parent28ea5ce732053334cb975395a216a2898d8622cc (diff)
Make sure that getopt flags are only written down once
darcs-hash:20060526145551-ac50b-5411809433e277cd0bdebc34907ee3312a8a0263.gz
Diffstat (limited to 'mimedb.c')
-rw-r--r--mimedb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mimedb.c b/mimedb.c
index 19173c59..3684326f 100644
--- a/mimedb.c
+++ b/mimedb.c
@@ -89,6 +89,11 @@ license. Read the source code of the library for more information.
#define MIMEDB "mimedb"
/**
+ Getopt short switches for mimedb
+*/
+#define GETOPT_STRING "tfimdalhv"
+
+/**
All types of input and output possible
*/
enum
@@ -1216,14 +1221,14 @@ int main (int argc, char *argv[])
int opt = getopt_long( argc,
argv,
- "tfimdalhv",
+ GETOPT_STRING,
long_options,
&opt_index );
#else
int opt = getopt( argc,
argv,
- "tfimdalhv" );
+ GETOPT_STRING );
#endif
if( opt == -1 )
break;