lint
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Feb 1992 08:42:20 +0000 (00:42 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Feb 1992 08:42:20 +0000 (00:42 -0800)
SCCS-vsn: bin/ls/print.c 5.30

usr/src/bin/ls/print.c

index 4d3a26c..b6b8999 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)print.c    5.29 (Berkeley) %G%";
+static char sccsid[] = "@(#)print.c    5.30 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -21,6 +21,7 @@ static char sccsid[] = "@(#)print.c   5.29 (Berkeley) %G%";
 #include <pwd.h>
 #include <utmp.h>
 #include <tzfile.h>
 #include <pwd.h>
 #include <utmp.h>
 #include <tzfile.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include "ls.h"
 #include "extern.h"
 #include <stdio.h>
 #include "ls.h"
 #include "extern.h"
@@ -124,7 +125,8 @@ printcol(dlist, entries, btotal, maxlen)
         */
        if (entries > lastentries) {
                lastentries = entries;
         */
        if (entries > lastentries) {
                lastentries = entries;
-               if ((array = (FTSENT **) realloc(array, entries * sizeof(FTSENT *))) == NULL) {
+               if ((array =
+                   realloc(array, entries * sizeof(FTSENT *))) == NULL) {
                        err(0, "%s", strerror(errno));
                        printscol(dlist, entries, btotal, maxlen);
                }
                        err(0, "%s", strerror(errno));
                        printscol(dlist, entries, btotal, maxlen);
                }