diff options
author | Ross Burton <ross.burton@intel.com> | 2019-10-14 14:48:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-04 13:39:04 +0000 |
commit | a348b3aa77a319c6384ae059e0c8197e7aa6efa8 (patch) | |
tree | 70e0792babb3f8267fbf6e8845ec5143181e1211 /meta/recipes-devtools/qemu/qemu-helper | |
parent | b23f006851e5aaf920d0d4dfccbb96da954eda20 (diff) | |
download | poky-a348b3aa77a319c6384ae059e0c8197e7aa6efa8.tar.gz |
qemu-helper-native: add missing option to getopt() call
Noticed by -Wall.
(From OE-Core rev: d893d267c1d9bd1242beb611f395ea7834474e3f)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-helper')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-helper/tunctl.c | 2 |
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) | |||
41 | int tap_fd, opt, delete = 0, brief = 0; | 41 | int tap_fd, opt, delete = 0, brief = 0; |
42 | char *tun = "", *file = "/dev/net/tun", *name = argv[0], *end; | 42 | char *tun = "", *file = "/dev/net/tun", *name = argv[0], *end; |
43 | 43 | ||
44 | while((opt = getopt(argc, argv, "bd:f:t:u:g:")) > 0){ | 44 | while((opt = getopt(argc, argv, "bd:f:t:u:g:h")) > 0){ |
45 | switch(opt) { | 45 | switch(opt) { |
46 | case 'b': | 46 | case 'b': |
47 | brief = 1; | 47 | brief = 1; |