summaryrefslogtreecommitdiff
path: root/apf_run.c
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-11-23 12:56:16 -0800
committerYi Kong <yikong@google.com>2020-02-24 13:58:50 +0000
commit3416d89e435c9feccd54cc2258e547fa7fcf0a01 (patch)
tree78fefabac1a6d241a0b71729417ef3ad91c7b49d /apf_run.c
parent6ef6218a98992a7c7fba25e8eed0b57dd76a5519 (diff)
downloadapf-3416d89e435c9feccd54cc2258e547fa7fcf0a01.tar.gz
Maximum value of uint32_t should be UINT32_MAX instead of ULONG_MAX
Fixes tautological-constant-out-of-range-compare warning. Bug: 72331526 Test: presubmit Change-Id: Ie71f5a57fad298a9cb035b5e7430af617b438ab8
Diffstat (limited to 'apf_run.c')
-rw-r--r--apf_run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apf_run.c b/apf_run.c
index 8597959..0b36b0e 100644
--- a/apf_run.c
+++ b/apf_run.c
@@ -237,7 +237,7 @@ int main(int argc, char* argv[]) {
case OPT_AGE:
errno = 0;
filter_age = strtoul(optarg, &endptr, 10);
- if ((errno == ERANGE && filter_age == ULONG_MAX) ||
+ if ((errno == ERANGE && filter_age == UINT32_MAX) ||
(errno != 0 && filter_age == 0)) {
perror("Error on age option: strtoul");
exit(1);