summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 07:08:30 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 07:08:30 +0200
commitd7ee00636947115c7dce4d615d35b293eb85710d (patch)
tree9054ffc35f5bd585b6c2c0cbe2363df05d295b8f /server
parentadded inital client codebase (diff)
improved error checking
Diffstat (limited to 'server')
-rw-r--r--server/dolmetschctl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/dolmetschctl.c b/server/dolmetschctl.c
index fd63e99..5bb9965 100644
--- a/server/dolmetschctl.c
+++ b/server/dolmetschctl.c
@@ -156,13 +156,7 @@ int main(int argc, char* argv[])
osc_port = optarg;
break;
case '?':
- if (optopt == 'x')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'd')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'm')
- error(0, 0, "Option -%c requires an argument.\n", optopt);
- else if (optopt == 'o')
+ if (optopt == 'x' || optopt == 'd' || optopt == 'm' || optopt == 'o')
error(0, 0, "Option -%c requires an argument.\n", optopt);
else if (isprint (optopt))
error(0, 0, "Unknown option `-%c'.\n", optopt);