#include "af-list.h"
#include "alloc-util.h"
-#include "def.h"
+#include "constants.h"
#include "errno-util.h"
#include "escape.h"
#include "fd-util.h"
const void *key;
int r;
- switch(s->split_mode) {
+ switch (s->split_mode) {
case JOURNAL_WRITE_SPLIT_NONE:
key = "one and only";
break;
if (r < 0)
return r;
- fd_ = -1;
+ fd_ = -EBADF;
s->active++;
return 0;
}
SocketAddress *addr,
char **hostname) {
- _cleanup_close_ int fd2 = -1;
+ _cleanup_close_ int fd2 = -EBADF;
int r;
log_debug("Accepting new %s connection on fd:%d", type, fd);
return log_error_errno(errno, "accept() on fd:%d failed: %m", fd);
}
- switch(socket_address_family(addr)) {
+ switch (socket_address_family(addr)) {
case AF_INET:
case AF_INET6: {
_cleanup_free_ char *a = NULL;