summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-10-14 14:48:45 +0100
committerArmin Kuster <akuster808@gmail.com>2019-11-10 14:10:43 -0800
commit7ae318fb4eaa8595c30af68c9df0d6c09116dc4d (patch)
tree4431b604ffe56f9e6ef81dedb70888070146bb71
parent29d926802e7f8b4614a2dafa0af4c923912e1811 (diff)
downloadopenembedded-core-contrib-7ae318fb4eaa8595c30af68c9df0d6c09116dc4d.tar.gz
openembedded-core-contrib-7ae318fb4eaa8595c30af68c9df0d6c09116dc4d.tar.bz2
openembedded-core-contrib-7ae318fb4eaa8595c30af68c9df0d6c09116dc4d.zip
qemu-helper-native: add missing option to getopt() call
Noticed by -Wall. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/recipes-devtools/qemu/qemu-helper/tunctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-helper/tunctl.c b/meta/recipes-devtools/qemu/qemu-helper/tunctl.c
index 16e24a2add..fc00e99789 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;