mirror of git://git.suckless.org/ubase
last: spaces to tabs
This commit is contained in:
parent
faa6fe28e2
commit
314f2a77f0
2
last.c
2
last.c
|
@ -46,7 +46,7 @@ main(int argc, char **argv)
|
||||||
prog = basename(argv0);
|
prog = basename(argv0);
|
||||||
file = (!strcmp(prog, "last")) ? WTMP_PATH : BTMP_PATH;
|
file = (!strcmp(prog, "last")) ? WTMP_PATH : BTMP_PATH;
|
||||||
if ((fp = fopen(file, "r")) == NULL)
|
if ((fp = fopen(file, "r")) == NULL)
|
||||||
eprintf("fopen %s:", file);
|
eprintf("fopen %s:", file);
|
||||||
|
|
||||||
while (fread(&ut, sizeof(ut), 1, fp) == 1) {
|
while (fread(&ut, sizeof(ut), 1, fp) == 1) {
|
||||||
if (ut.ut_type != USER_PROCESS ||
|
if (ut.ut_type != USER_PROCESS ||
|
||||||
|
|
Loading…
Reference in New Issue