summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/readutmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c
index d032675e6..a623f2c1c 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);