]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
string_utils: use UINT64_MAX macro 2572/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 26 Aug 2018 23:05:18 +0000 (01:05 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Aug 2018 18:22:24 +0000 (20:22 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/string_utils.c

index 0a1e3e3bf6a07e8591dfb2d356ce0699744002d9..fb5cb54e7b8722099d36489a6733b2ab54b0967e 100644 (file)
@@ -679,7 +679,7 @@ int lxc_safe_uint64(const char *numstr, uint64_t *converted, int base)
 
        errno = 0;
        u = strtoull(numstr, &err, base);
-       if (errno == ERANGE && u == ULLONG_MAX)
+       if (errno == ERANGE && u == UINT64_MAX)
                return -ERANGE;
 
        if (err == numstr || *err != '\0')