>From 173b8b4b409bc1d0222f8cfe8a1275ef8a52a39f Mon Sep 17 00:00:00 2001
From: sin <[email protected]>
Date: Mon, 5 Aug 2013 16:04:49 +0100
Subject: [PATCH] No need to cast to (char *)
---
who.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/who.c b/who.c
index 3d0c5db..aee4f76 100644
--- a/who.c
+++ b/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,
--
1.8.2.3