Some style improvements. [Nearly] #13592 by Petri Koistinen.
This commit is contained in:
parent
1738245911
commit
aaec222d9c
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: cat.c,v 1.26 2001/01/03 14:32:40 mjl Exp $ */
|
/* $NetBSD: cat.c,v 1.27 2001/07/29 22:40:57 wiz Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -47,18 +47,18 @@ __COPYRIGHT(
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: cat.c,v 1.26 2001/01/03 14:32:40 mjl Exp $");
|
__RCSID("$NetBSD: cat.c,v 1.27 2001/07/29 22:40:57 wiz Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <locale.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -89,15 +89,15 @@ main(int argc, char *argv[])
|
|||||||
case 'e':
|
case 'e':
|
||||||
eflag = vflag = 1; /* -e implies -v */
|
eflag = vflag = 1; /* -e implies -v */
|
||||||
break;
|
break;
|
||||||
|
case 'f':
|
||||||
|
fflag = 1;
|
||||||
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
nflag = 1;
|
nflag = 1;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
sflag = 1;
|
sflag = 1;
|
||||||
break;
|
break;
|
||||||
case 'f':
|
|
||||||
fflag = 1;
|
|
||||||
break;
|
|
||||||
case 't':
|
case 't':
|
||||||
tflag = vflag = 1; /* -t implies -v */
|
tflag = vflag = 1; /* -t implies -v */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user