]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
authorJim Meyering <jim@meyering.net>
Fri, 11 Apr 2003 12:15:21 +0000 (12:15 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Apr 2003 12:15:21 +0000 (12:15 +0000)
lib/readutmp.c

index d032675e6f43594b2e443d537b3172f8c75dea0b..a623f2c1cea62098f289dd8aa2fec3490141be89 100644 (file)
@@ -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);