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:
e433767
)
log: let's make use of the fact that our functions return the negative error code...
author
Lennart Poettering
<lennart@poettering.net>
Mon, 25 Sep 2017 18:26:47 +0000
(20:26 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 25 Sep 2017 18:26:47 +0000
(20:26 +0200)
src/basic/log.c
patch
|
blob
|
history
diff --git
a/src/basic/log.c
b/src/basic/log.c
index 0581be58c963420ed8e11d98521d36d3e22880df..d34d5184727ac60a700eebae187f05eac0397de6 100644
(file)
--- a/
src/basic/log.c
+++ b/
src/basic/log.c
@@
-850,9
+850,8
@@
void log_assert_failed_return_realm(
}
int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) {
- log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
- ENOMEM, file, line, func, "Out of memory.");
- return -ENOMEM;
+ return log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
+ ENOMEM, file, line, func, "Out of memory.");
}
int log_format_iovec(