[PATCH] No need to cast to (char *)

From: sin <sin_AT_2f30.org>
Date: Mon, 5 Aug 2013 16:04:49 +0100

---
 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
_AT_@ -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
--CE+1k2dSO48ffgeK--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 05 2013 - 17:24:02 CEST