Skip to content

Commit 9bfb11e

Browse files
committed
option parsing: remove legacy options
Signed-off-by: Sami Kerola <[email protected]>
1 parent b41be8f commit 9bfb11e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

f5gs.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ int main(const int argc, char **argv)
148148
{"enable", no_argument, NULL, 'e'},
149149
{"server", no_argument, NULL, 's'},
150150
{"address", required_argument, NULL, 'a'},
151-
{"listen", required_argument, NULL, 'l'},
152151
{"port", required_argument, NULL, 'p'},
153152
{"statedir", required_argument, NULL, STATEDIR_OPT},
154153
{"quiet", no_argument, NULL, 'q'},
@@ -166,7 +165,7 @@ int main(const int argc, char **argv)
166165
atexit(close_stdout);
167166
rtc.argv = argv;
168167

169-
while ((c = getopt_long(argc, argv, "dmesa:l:p:qVh", longopts, NULL)) != -1) {
168+
while ((c = getopt_long(argc, argv, "dmesa:p:qVh", longopts, NULL)) != -1) {
170169
switch (c) {
171170
case 'd':
172171
rtc.new_state = STATE_DISABLE;
@@ -180,8 +179,6 @@ int main(const int argc, char **argv)
180179
case 's':
181180
server = 1;
182181
break;
183-
case 'l': /* FIXME: to be removed after 2015-08-01 */
184-
warnx("--listen is deprecated, use --address instead");
185182
case 'a':
186183
address = optarg;
187184
break;

0 commit comments

Comments
 (0)