summaryrefslogtreecommitdiff
path: root/src/update-utmp/update-utmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update-utmp/update-utmp.c')
-rw-r--r--src/update-utmp/update-utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index 675526f3ac..7449a2321c 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -39,7 +39,7 @@ static void context_clear(Context *c) {
#if HAVE_AUDIT
if (c->audit_fd >= 0)
audit_close(c->audit_fd);
- c->audit_fd = -1;
+ c->audit_fd = -EBADF;
#endif
}
@@ -221,7 +221,7 @@ static int on_runlevel(Context *c) {
static int run(int argc, char *argv[]) {
_cleanup_(context_clear) Context c = {
#if HAVE_AUDIT
- .audit_fd = -1,
+ .audit_fd = -EBADF,
#endif
};
int r;