chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: fix a leak
[elogind.git]
/
src
/
journal-remote
/
journal-remote-parse.c
diff --git
a/src/journal-remote/journal-remote-parse.c
b/src/journal-remote/journal-remote-parse.c
index 47ff368e6c0ff7ddf9bfea83513a817dca3d7a44..76407f711b7664b5756b54b002f2818d2b654cf5 100644
(file)
--- a/
src/journal-remote/journal-remote-parse.c
+++ b/
src/journal-remote/journal-remote-parse.c
@@
-125,7
+125,7
@@
static int get_line(RemoteSource *source, char **line, size_t *size) {
source->size - source->filled);
if (n < 0) {
if (errno != EAGAIN && errno != EWOULDBLOCK)
source->size - source->filled);
if (n < 0) {
if (errno != EAGAIN && errno != EWOULDBLOCK)
- log_error
(
"read(%d, ..., %zd): %m", source->fd,
+ log_error
_errno(errno,
"read(%d, ..., %zd): %m", source->fd,
source->size - source->filled);
return -errno;
} else if (n == 0)
source->size - source->filled);
return -errno;
} else if (n == 0)
@@
-186,7
+186,7
@@
static int fill_fixed_size(RemoteSource *source, void **data, size_t size) {
source->size - source->filled);
if (n < 0) {
if (errno != EAGAIN && errno != EWOULDBLOCK)
source->size - source->filled);
if (n < 0) {
if (errno != EAGAIN && errno != EWOULDBLOCK)
- log_error
(
"read(%d, ..., %zd): %m", source->fd,
+ log_error
_errno(errno,
"read(%d, ..., %zd): %m", source->fd,
source->size - source->filled);
return -errno;
} else if (n == 0)
source->size - source->filled);
return -errno;
} else if (n == 0)