From: Willem de Bruijn Date: Sat, 11 Dec 2021 19:30:31 +0000 (-0500) Subject: selftests/net: toeplitz: fix udp option X-Git-Tag: accepted/tizen/unified/20230118.172025~4160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4985d3b53c4de1a343b3994be27bad631f23b9c1;p=platform%2Fkernel%2Flinux-rpi.git selftests/net: toeplitz: fix udp option [ Upstream commit a8d13611b4a7b1b20d17bf2b9a89a3efcabde56c ] Tiny fix. Option -u ("use udp") does not take an argument. It can cause the next argument to silently be ignored. Fixes: 5ebfb4cc3048 ("selftests/net: toeplitz test") Signed-off-by: Willem de Bruijn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/tools/testing/selftests/net/toeplitz.c b/tools/testing/selftests/net/toeplitz.c index 710ac95..c548934 100644 --- a/tools/testing/selftests/net/toeplitz.c +++ b/tools/testing/selftests/net/toeplitz.c @@ -498,7 +498,7 @@ static void parse_opts(int argc, char **argv) bool have_toeplitz = false; int index, c; - while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:u:v", long_options, &index)) != -1) { + while ((c = getopt_long(argc, argv, "46C:d:i:k:r:stT:uv", long_options, &index)) != -1) { switch (c) { case '4': cfg_family = AF_INET;