treewide: apply errno.cocci

with small manual cleanups for style.
This commit is contained in:
Michal Schmidt
2015-11-09 20:01:06 +01:00
parent b3e3bb19a0
commit e1427b138f
21 changed files with 43 additions and 87 deletions
+1 -2
View File
@@ -212,8 +212,7 @@ static int fifo_process(Fifo *f) {
if (errno == EAGAIN)
return 0;
log_warning_errno(errno, "Failed to read from fifo: %m");
return -errno;
return log_warning_errno(errno, "Failed to read from fifo: %m");
}
f->bytes_read += l;