chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: don't continue looking for syv init scripts after the first failure
[elogind.git]
/
main.c
diff --git
a/main.c
b/main.c
index 830a9a43eb9ea830b39a95d2629fbba49abdb791..cb4cc211b7d64996412fa0a06b58907aa6a68119 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-35,10
+35,8
@@
int main(int argc, char *argv[]) {
Job *job = NULL;
int r, retval = 1;
Job *job = NULL;
int r, retval = 1;
- assert_se(set_unit_path("test1") >= 0);
-
- if (!(m = manager_new())) {
- log_error("Failed to allocate manager object: %s", strerror(ENOMEM));
+ if ((r = manager_new(&m)) < 0) {
+ log_error("Failed to allocate manager object: %s", strerror(-r));
goto finish;
}
goto finish;
}