chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b69d1
)
shared: "max" in the string->number conversion is meant to be inclusive
author
Michal Schmidt
<mschmidt@redhat.com>
Tue, 30 Oct 2012 14:45:50 +0000
(15:45 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Tue, 30 Oct 2012 14:46:49 +0000
(15:46 +0100)
src/shared/util.h
patch
|
blob
|
history
diff --git
a/src/shared/util.h
b/src/shared/util.h
index ca80bfe2e8c520d0c844d1491e58d21714d226e5..284035c33b15703354319caf72719bbb1bb7ec33 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-339,7
+339,7
@@
unsigned long long random_ull(void);
if (name##_table[i] && \
streq(name##_table[i], s)) \
return i; \
- if (safe_atou(s, &u) >= 0 && u <
max)
\
+ if (safe_atou(s, &u) >= 0 && u <
= max)
\
return (type) u; \
return (type) -1; \
} \