summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-09-03 15:18:49 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-09-03 15:18:54 +0200
commitd6d8079d2b8540831c39b1844029dfdd848d0a3a (patch)
treeb560cfdddbc0b833081d56d59cc77ba27c6efb73
parent528bbddafebf6d48e6d0dc29d1e2c8263ce6deb7 (diff)
main: use proper variable when warning about unsupported features
Reported-by: Sebastian Apel <sebastian.apel@gmx.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 44c3226..fba5f80 100644
--- a/main.c
+++ b/main.c
@@ -246,7 +246,7 @@ int main(int argc, char **argv)
case 'K':
case 's':
fprintf(stderr, "uhttpd: TLS support not compiled, "
- "ignoring -%c\n", opt);
+ "ignoring -%c\n", ch);
break;
#endif
case 'p':
@@ -388,7 +388,7 @@ int main(int argc, char **argv)
case 'l':
case 'L':
fprintf(stderr, "uhttpd: Lua support not compiled, "
- "ignoring -%c\n", opt);
+ "ignoring -%c\n", ch);
break;
#endif
#ifdef HAVE_UBUS
@@ -413,7 +413,7 @@ int main(int argc, char **argv)
case 'U':
case 'X':
fprintf(stderr, "uhttpd: UBUS support not compiled, "
- "ignoring -%c\n", opt);
+ "ignoring -%c\n", ch);
break;
#endif
default: