From: Ross Burton Date: Mon, 14 Oct 2019 13:48:45 +0000 (+0100) Subject: qemu-helper-native: add missing option to getopt() call X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae318fb4eaa8595c30af68c9df0d6c09116dc4d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git qemu-helper-native: add missing option to getopt() call Noticed by -Wall. Signed-off-by: Ross Burton Signed-off-by: Armin Kuster --- diff --git a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c index 16e24a2add6..fc00e997891 100644 --- a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c +++ b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c @@ -41,7 +41,7 @@ int main(int argc, char **argv) int tap_fd, opt, delete = 0, brief = 0; char *tun = "", *file = "/dev/net/tun", *name = argv[0], *end; - while((opt = getopt(argc, argv, "bd:f:t:u:g:")) > 0){ + while((opt = getopt(argc, argv, "bd:f:t:u:g:h")) > 0){ switch(opt) { case 'b': brief = 1;