No need to cast to (char *)
This commit is contained in:
parent
d59c8eea36
commit
918269e057
2
who.c
2
who.c
@ -32,7 +32,7 @@ main(int argc, char **argv)
|
||||
if (!(ufp = fopen(_PATH_UTMP, "r"))) {
|
||||
eprintf("fopen:");
|
||||
}
|
||||
while(fread((char *)&usr, sizeof(usr), 1, ufp) == 1) {
|
||||
while(fread(&usr, sizeof(usr), 1, ufp) == 1) {
|
||||
if (!*usr.ut_name || !*usr.ut_line)
|
||||
continue;
|
||||
if (mflag && strcmp(usr.ut_line,
|
||||
|
Loading…
Reference in New Issue
Block a user