From 9def4be367ef67f9e5064ac5a0d20cf5e41f4285 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 11 Apr 2003 12:15:21 +0000 Subject: [PATCH] Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values. --- lib/readutmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/readutmp.c b/lib/readutmp.c index d032675e6f..a623f2c1ce 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -116,7 +116,7 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf) fstat (fileno (utmp), &file_stats); size = file_stats.st_size; if (size > 0) - buf = (STRUCT_UTMP *) xmalloc (size); + buf = xmalloc (size); else { fclose (utmp); -- 2.47.3