]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu-helper-native: add missing option to getopt() call
authorRoss Burton <ross.burton@intel.com>
Mon, 14 Oct 2019 13:48:45 +0000 (14:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Nov 2019 13:31:27 +0000 (13:31 +0000)
Noticed by -Wall.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/qemu/qemu-helper/tunctl.c

index 16e24a2add66b9519ec1bd8d614578601c9d788e..fc00e997891ae8edb0d0db17cab1518db527de0b 100644 (file)
@@ -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;