log: let's make use of the fact that our functions return the negative error code for log_oom() too

This commit is contained in:
Lennart Poettering 2017-09-25 20:26:47 +02:00
parent 82677ae4c7
commit 7558e10c98
1 changed files with 2 additions and 3 deletions

View File

@ -834,9 +834,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(