]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/load-fragment.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / core / load-fragment.c
index 3a95f0d504b03f911550ed3098ccf37d4887c1d6..e5766a58a7c5f11286d680a1e8242e62b41593c0 100644 (file)
@@ -674,7 +674,7 @@ int config_parse_socket_listen(
                 p->type = SOCKET_SOCKET;
         }
 
-        p->fd = -1;
+        p->fd = -EBADF;
         p->auxiliary_fds = NULL;
         p->n_auxiliary_fds = 0;
         p->socket = s;
@@ -2232,7 +2232,7 @@ int config_parse_path_spec(const char *unit,
         s->unit = UNIT(p);
         s->path = TAKE_PTR(k);
         s->type = b;
-        s->inotify_fd = -1;
+        s->inotify_fd = -EBADF;
 
         LIST_PREPEND(spec, p->specs, s);