diff options
author | Alexey Kodanev <alexey.kodanev@oracle.com> | 2015-08-24 22:32:26 +0300 |
---|---|---|
committer | Alexey Kodanev <alexey.kodanev@oracle.com> | 2015-08-25 16:30:23 +0300 |
commit | 67fb1e28c5767c2166d8f3f690d83d7b666d0184 (patch) | |
tree | 6b9e52bacd26eb9a177ac1677f5b772b2b985727 /testcases/network | |
parent | 608f2eef120d909988c95c24d9e61bfd73f8cef2 (diff) |
network/tcp_fastopen: fix typo in check_opt() and check_opt_l()
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Diffstat (limited to 'testcases/network')
-rw-r--r-- | testcases/network/tcp_fastopen/tcp_fastopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/network/tcp_fastopen/tcp_fastopen.c b/testcases/network/tcp_fastopen/tcp_fastopen.c index 6c0d7b83d..08a6019a2 100644 --- a/testcases/network/tcp_fastopen/tcp_fastopen.c +++ b/testcases/network/tcp_fastopen/tcp_fastopen.c @@ -669,7 +669,7 @@ static void check_opt(const char *name, char *arg, int *val, int lim) if (sscanf(arg, "%i", val) != 1) tst_brkm(TBROK, NULL, "-%s option arg is not a number", name); - if (clients_num < lim) + if (*val < lim) tst_brkm(TBROK, NULL, "-%s option arg is less than %d", name, lim); } @@ -681,7 +681,7 @@ static void check_opt_l(const char *name, char *arg, long *val, long lim) if (sscanf(arg, "%ld", val) != 1) tst_brkm(TBROK, NULL, "-%s option arg is not a number", name); - if (clients_num < lim) + if (*val < lim) tst_brkm(TBROK, NULL, "-%s option arg is less than %ld", name, lim); } |