chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assorted format fixes
[elogind.git]
/
src
/
shared
/
uid-range.c
diff --git
a/src/shared/uid-range.c
b/src/shared/uid-range.c
index 74c3be4a137fe59764e5710192a507302e838cd0..4794ff45bbbaf0033f9f4fb974945476a47f8fa1 100644
(file)
--- a/
src/shared/uid-range.c
+++ b/
src/shared/uid-range.c
@@
-161,7
+161,7
@@
int uid_range_add_str(UidRange **p, unsigned *n, const char *s) {
}
int uid_range_next_lower(const UidRange *p, unsigned n, uid_t *uid) {
}
int uid_range_next_lower(const UidRange *p, unsigned n, uid_t *uid) {
- uid_t closest =
(uid_t) -1
, candidate;
+ uid_t closest =
UID_INVALID
, candidate;
unsigned i;
assert(p);
unsigned i;
assert(p);
@@
-184,7
+184,7
@@
int uid_range_next_lower(const UidRange *p, unsigned n, uid_t *uid) {
closest = end;
}
closest = end;
}
- if (closest ==
(uid_t) -1
)
+ if (closest ==
UID_INVALID
)
return -EBUSY;
*uid = closest;
return -EBUSY;
*uid = closest;