mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-09 09:57:26 +03:00
basic: fix hosed return value in skip_session()
../src/basic/cgroup-util.c: In function ‘skip_session’: ../src/basic/cgroup-util.c:1241:32: error: incompatible types when returning type ‘_Bool’ but ‘const char *’ was expected 1241 | return false; (cherry picked from commit db8e720984269a050a7a78aeb503a7402ef567f7) (cherry picked from commit ad647734c7cffeab0f44b12411f0e123083e9db1) (cherry picked from commit 9ca9f95122c8bf31e95095afa2d9468d3f4bd5b1)
This commit is contained in:
parent
4dc2810d54
commit
560f05d95c
@ -1245,7 +1245,7 @@ static const char *skip_session(const char *p) {
|
||||
* here. */
|
||||
|
||||
if (!session_id_valid(buf))
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
p += n;
|
||||
p += strspn(p, "/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user