Minor whitespace fixes

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-01-29 12:34:30 +01:00
parent 7f0a85c106
commit 6f6ab6bc33
2 changed files with 8 additions and 8 deletions
+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 */
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)
{
struct utmp utent;
struct utmp utent;
utent.ut_type = RUN_LVL;
utent.ut_pid = (encode(pre) << 8) | (encode(now) & 0xFF);
strlcpy(utent.ut_user, "runlevel", sizeof(utent.ut_user));
utent.ut_type = RUN_LVL;
utent.ut_pid = (encode(pre) << 8) | (encode(now) & 0xFF);
strlcpy(utent.ut_user, "runlevel", sizeof(utent.ut_user));
setutent();
pututline(&utent);
endutent();
setutent();
pututline(&utent);
endutent();
}
/**