From 14f6aa395d17a830b969bd3964d5df8a439e69f5 Mon Sep 17 00:00:00 2001
From: jette <jette@schedmd.com>
Date: Thu, 1 Dec 2011 12:23:28 -0800
Subject: [PATCH] Minor change to eliminate compiler warning

---
 src/common/proc_args.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/common/proc_args.c b/src/common/proc_args.c
index 83761103b40..52d63be100c 100644
--- a/src/common/proc_args.c
+++ b/src/common/proc_args.c
@@ -895,7 +895,7 @@ extern int parse_uint32(char *aval, uint32_t *ival)
 	 * set the value and return. Otherwise return
 	 * an error.
 	 */
-	uint32_t max32uint = 4294967295;
+	uint32_t max32uint = NO_VAL;
 	long long  tval;
 
 	/*
@@ -903,7 +903,7 @@ extern int parse_uint32(char *aval, uint32_t *ival)
 	 */
 	tval = strtoll(aval, (char **) NULL, 10);
 	if ((tval == LLONG_MIN) || (tval == LLONG_MAX) ||
-	    (tval < 0) || (tval > max32uint))
+	    (tval < 0) || (tval >= max32uint))
 		return 1;
 
 	*ival = (uint32_t) tval;
@@ -930,14 +930,14 @@ extern int parse_uint16(char *aval, uint16_t *ival)
 	 * return an error.
 	 */
 	long long  tval;
-	uint16_t max16uint = 65535;
+	uint16_t max16uint = (uint16_t) NO_VAL;
 
 	/*
  	 * Return error for invalid value.
 	 */
 	tval = strtoll(aval, (char **) NULL, 10);
 	if ((tval == LLONG_MIN) || (tval == LLONG_MAX) ||
-	    (tval < 0) || (tval > max16uint))
+	    (tval < 0) || (tval >= max16uint))
 		return 1;
 
 	*ival = (uint16_t) tval;
-- 
GitLab