chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: move logind into its own subdirectory
[elogind.git]
/
src
/
stdout-syslog-bridge.c
diff --git
a/src/stdout-syslog-bridge.c
b/src/stdout-syslog-bridge.c
index d50df22c88acf93d9770d938375eab82be62e4f4..6ec23ec6120ae3c0db9fa458b3c830452d87cc64 100644
(file)
--- a/
src/stdout-syslog-bridge.c
+++ b/
src/stdout-syslog-bridge.c
@@
-236,7
+236,6
@@
static int stream_log(Stream *s, char *p, usec_t ts) {
writev(console, iovec, 4);
}
writev(console, iovec, 4);
}
-
}
return 0;
}
return 0;
@@
-366,7
+365,6
@@
static int stream_process(Stream *s, usec_t ts) {
return -errno;
}
return -errno;
}
-
if (l == 0)
return 0;
if (l == 0)
return 0;
@@
-409,8
+407,10
@@
static int stream_new(Server *s, int server_fd) {
int r;
assert(s);
int r;
assert(s);
+ assert(server_fd >= 0);
- if ((fd = accept4(server_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC)) < 0)
+ fd = accept4(server_fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
+ if (fd < 0)
return -errno;
if (s->n_streams >= STREAMS_MAX) {
return -errno;
if (s->n_streams >= STREAMS_MAX) {