From 8a97adf1ba0db7e54f0fab087d6f0a54fba5374c Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Wed, 3 Nov 2021 08:02:38 +1100 Subject: [PATCH] moved -tpg argument to be second --- rrqnet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rrqnet.c b/rrqnet.c index b28b3c8..fa8d3f6 100644 --- a/rrqnet.c +++ b/rrqnet.c @@ -1411,11 +1411,6 @@ int main(int argc, char *argv[]) { ///// Parse command line arguments i = 1; #define ENSUREARGS(n) if ( argc < i + n ) usage() - ENSUREARGS( 1 ); - if ( strncmp( "-tpg", argv[i], 4 ) == 0 ) { - tpg_quirk = 1; - i++; - } ENSUREARGS( 1 ); // First: optional -v, -vv or -vvv if ( strncmp( "-v", argv[i], 2 ) == 0 ) { @@ -1431,6 +1426,11 @@ int main(int argc, char *argv[]) { i++; ENSUREARGS( 1 ); } + if ( strncmp( "-tpg", argv[i], 4 ) == 0 ) { + tpg_quirk = 1; + i++; + ENSUREARGS( 1 ); + } // then: optional -4 if ( strncmp( "-4", argv[i], 2 ) == 0 ) { udp6 = 0; -- 2.39.2