aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--fishd.c9
-rw-r--r--mimedb.c9
-rw-r--r--set_color.c9
3 files changed, 21 insertions, 6 deletions
diff --git a/fishd.c b/fishd.c
index c78a0fcf..7409f82e 100644
--- a/fishd.c
+++ b/fishd.c
@@ -111,6 +111,11 @@ time the original barrier request was sent have been received.
#define LOCKTIMEOUT 1
/**
+ Getopt short switches for fishd
+*/
+#define GETOPT_STRING "hv"
+
+/**
The list of connections to clients
*/
static connection_t *conn;
@@ -502,14 +507,14 @@ int main( int argc, char ** argv )
int opt = getopt_long( argc,
argv,
- "hv",
+ GETOPT_STRING,
long_options,
&opt_index );
#else
int opt = getopt( argc,
argv,
- "hv" );
+ GETOPT_STRING );
#endif
if( opt == -1 )
break;
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;
diff --git a/set_color.c b/set_color.c
index 5228987e..f762c64d 100644
--- a/set_color.c
+++ b/set_color.c
@@ -49,6 +49,11 @@
*/
#define SET_COLOR "set_color"
+/**
+ Getopt short switches for set_color
+*/
+#define GETOPT_STRING "b:hvoc"
+
#if HAVE_GETTEXT
#define _(string) gettext(string)
#else
@@ -186,13 +191,13 @@ int main( int argc, char **argv )
int opt = getopt_long( argc,
argv,
- "b:hvoc",
+ GETOPT_STRING,
long_options,
&opt_index );
#else
int opt = getopt( argc,
argv,
- "b:hvoc" );
+ GETOPT_STRING );
#endif
if( opt == -1 )
break;