Minor whitespace fixes

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-01-29 12:34:30 +01:00
1 parent 7f0a85c106
commit 6f6ab6bc33
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -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);
} }
} }
+7 -7
View File
@@ -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();
} }
/** /**