mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Minor whitespace fixes
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7f0a85c106
commit
6f6ab6bc33
2 files changed
+8
-8
No files matched your search
@@ -190,7 +190,7 @@ static void generic_io_cb(uev_ctx_t *UNUSED(ctx), uev_t *w, void *arg, int event
|
|||||||
|
|
||||||
/* Update fd, may be changed by plugin callback, e.g., if FIFO */
|
/* Update fd, may be changed by plugin callback, e.g., if FIFO */
|
||||||
if (p->io.fd != w->fd)
|
if (p->io.fd != w->fd)
|
||||||
uev_io_set (w, p->io.fd, p->io.flags);
|
uev_io_set(w, p->io.fd, p->io.flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -153,15 +153,15 @@ static int encode(int lvl)
|
|||||||
|
|
||||||
static void utmp_save(int pre, int now)
|
static void utmp_save(int pre, int now)
|
||||||
{
|
{
|
||||||
struct utmp utent;
|
struct utmp utent;
|
||||||
|
|
||||||
utent.ut_type = RUN_LVL;
|
utent.ut_type = RUN_LVL;
|
||||||
utent.ut_pid = (encode(pre) << 8) | (encode(now) & 0xFF);
|
utent.ut_pid = (encode(pre) << 8) | (encode(now) & 0xFF);
|
||||||
strlcpy(utent.ut_user, "runlevel", sizeof(utent.ut_user));
|
strlcpy(utent.ut_user, "runlevel", sizeof(utent.ut_user));
|
||||||
|
|
||||||
setutent();
|
setutent();
|
||||||
pututline(&utent);
|
pututline(&utent);
|
||||||
endutent();
|
endutent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user