getbsize doesn't need the program name any longer
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 29 Apr 1993 08:23:02 +0000 (00:23 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 29 Apr 1993 08:23:02 +0000 (00:23 -0800)
SCCS-vsn: bin/ls/ls.c 5.74
SCCS-vsn: usr.bin/du/du.c 5.21

usr/src/bin/ls/ls.c
usr/src/usr.bin/du/du.c

index cd007d8..8746bf5 100644 (file)
@@ -15,7 +15,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)ls.c       5.73 (Berkeley) %G%";
+static char sccsid[] = "@(#)ls.c       5.74 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -31,7 +31,7 @@ static char sccsid[] = "@(#)ls.c      5.73 (Berkeley) %G%";
 #include "ls.h"
 #include "extern.h"
 
 #include "ls.h"
 #include "extern.h"
 
-char   *getbsize __P((char *, int *, long *));
+char   *getbsize __P((int *, long *));
 
 static void     display __P((FTSENT *, FTSENT *));
 static int      mastercmp __P((const FTSENT **, const FTSENT **));
 
 static void     display __P((FTSENT *, FTSENT *));
 static int      mastercmp __P((const FTSENT **, const FTSENT **));
@@ -192,7 +192,7 @@ main(argc, argv)
 
        /* If -l or -s, figure out block size. */
        if (f_longform || f_size) {
 
        /* If -l or -s, figure out block size. */
        if (f_longform || f_size) {
-               (void)getbsize("ls", &notused, &blocksize);
+               (void)getbsize(&notused, &blocksize);
                blocksize /= 512;
        }
 
                blocksize /= 512;
        }
 
index 2cece57..4f3c435 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)du.c       5.20 (Berkeley) %G%";
+static char sccsid[] = "@(#)du.c       5.21 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -29,7 +29,7 @@ static char sccsid[] = "@(#)du.c      5.20 (Berkeley) %G%";
 #include <stdlib.h>
 #include <string.h>
 
 #include <stdlib.h>
 #include <string.h>
 
-char   *getbsize __P((char *, int *, long *));
+char   *getbsize __P((int *, long *));
 int     linkchk __P((FTSENT *));
 void    usage __P((void));
 
 int     linkchk __P((FTSENT *));
 void    usage __P((void));
 
@@ -89,7 +89,7 @@ main(argc, argv)
                argv[1] = NULL;
        }
 
                argv[1] = NULL;
        }
 
-       (void)getbsize("du", &notused, &blocksize);
+       (void)getbsize(&notused, &blocksize);
        blocksize /= 512;
 
        if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL)
        blocksize /= 512;
 
        if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL)