artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043c47e
)
Use UINT64_MAX instead of -1 to set a uint64_t value to
author
krw
<krw@openbsd.org>
Sun, 18 Jun 2023 18:58:55 +0000
(18:58 +0000)
committer
krw
<krw@openbsd.org>
Sun, 18 Jun 2023 18:58:55 +0000
(18:58 +0000)
its maximum.
sbin/disklabel/editor.c
patch
|
blob
|
history
diff --git
a/sbin/disklabel/editor.c
b/sbin/disklabel/editor.c
index
785b115
..
8d60c2c
100644
(file)
--- a/
sbin/disklabel/editor.c
+++ b/
sbin/disklabel/editor.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: editor.c,v 1.40
7 2023/05/23 13:20:31
krw Exp $ */
+/* $OpenBSD: editor.c,v 1.40
8 2023/06/18 18:58:55
krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <millert@openbsd.org>
@@
-1979,7
+1979,7
@@
parse_sizerange(char *buf, u_int64_t *min, u_int64_t *max)
return (-1);
if (p != NULL && p[0] != '\0') {
if (p[0] == '*')
- *max =
-1
;
+ *max =
UINT64_MAX
;
else
if (parse_sizespec(p, &val2, &unit2) == -1)
return (-1);