main: use proper variable when warning about unsupported features
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 3 Sep 2014 13:18:49 +0000 (15:18 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 3 Sep 2014 13:18:54 +0000 (15:18 +0200)
Reported-by: Sebastian Apel <sebastian.apel@gmx.de>
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
main.c

diff --git a/main.c b/main.c
index 44c3226bff93a8c3ac647488585e36b2b9c00697..fba5f804e0a1c2684d9d7c1a89fd55077119be40 100644 (file)
--- 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: