projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f11a0c
)
nspawn: trivial simplification
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 21 Aug 2013 23:35:32 +0000
(19:35 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 23 Aug 2013 16:48:14 +0000
(12:48 -0400)
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
fc005d9
..
f820860
100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-1602,7
+1602,7
@@
int main(int argc, char *argv[]) {
}
if ((asprintf((char **)(envp + n_env++), "LISTEN_FDS=%u", n_fd_passed) < 0) ||
- (asprintf((char **)(envp + n_env++), "LISTEN_PID=
%lu", (unsigned long) 1
) < 0)) {
+ (asprintf((char **)(envp + n_env++), "LISTEN_PID=
1"
) < 0)) {
log_oom();
goto child_fail;
}