Fix minor style bugs noticed by the Bruce Filter.[tm]
Bruce-Filter-By: bde
This commit is contained in:
parent
5557a02a60
commit
d1762d1fbe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39138
@ -45,7 +45,7 @@ static char const copyright[] =
|
||||
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: cat.c,v 1.11 1998/05/13 07:16:37 charnier Exp $";
|
||||
"$Id: cat.c,v 1.12 1998/09/11 05:48:06 imp Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -65,11 +65,14 @@ const char *filename;
|
||||
|
||||
void cook_args __P((char *argv[]));
|
||||
void cook_buf __P((FILE *));
|
||||
int main __P((int argc, char *argv[]));
|
||||
void raw_args __P((char *argv[]));
|
||||
void raw_cat __P((int));
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int ch;
|
||||
|
||||
@ -245,7 +248,7 @@ raw_cat(rfd)
|
||||
if (fstat(wfd, &sbuf))
|
||||
err(1, "%s", filename);
|
||||
bsize = MAX(sbuf.st_blksize, 1024);
|
||||
if ((buf = malloc((u_int)bsize)) == NULL)
|
||||
if ((buf = malloc(bsize)) == NULL)
|
||||
err(1, NULL);
|
||||
}
|
||||
while ((nr = read(rfd, buf, bsize)) > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user