selftests/net: toeplitz: fix udp option
authorWillem de Bruijn <willemb@google.com>
Sat, 11 Dec 2021 19:30:31 +0000 (14:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 14:37:15 +0000 (14:37 +0000)
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 <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/toeplitz.c

index 710ac956bdb33fae80b1cda79c9dc57370dbcc82..c5489341cfb80487375e2b2ceeb21c9fd0aa035e 100644 (file)
@@ -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;