From 1db79f77d75442677722c03cddc1f376d7079cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Sat, 24 Feb 2018 12:52:52 +0000 Subject: [PATCH] Fix up|down args in path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/path.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/path.c b/src/path.c index 1eaed7c..70110cc 100644 --- a/src/path.c +++ b/src/path.c @@ -13,13 +13,10 @@ gt_path(int argc, char **argv) const char *dev = "tun0"; struct sockaddr_storage addr = { 0 }; - struct argz actionz[] = { - {NULL, "IPADDR", &addr, argz_addr}, - {NULL}}; - struct argz pathz[] = { + {NULL, "IPADDR", &addr, argz_addr}, {"dev", "NAME", &dev, argz_str}, - {"up|down", NULL, &actionz, argz_option}, + {"up|down", NULL, NULL, argz_option}, {NULL}}; if (argz(pathz, argc, argv))