style(9): don't initialise variables in their declaration, remove space

after function name, use __unused on unused parameters instead of
initialising them to bogus values.
This commit is contained in:
Tim J. Robbins 2002-06-07 09:13:43 +00:00
parent edf0752ebe
commit 93738f50e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98012

View File

@ -71,12 +71,12 @@ main(argc, argv)
char *argv[];
{
FILE *fp;
void (*fcn) (FILE *, const char *) = NULL;
void (*fcn)(FILE *, const char *);
int ch, rval;
fcn = NULL;
setlocale(LC_ALL, "");
fcn = NULL;
dchar = '\t'; /* default delimiter is \t */
/* Since we don't support multi-byte characters, the -c and -b
@ -217,15 +217,13 @@ needpos(size_t n)
}
}
/* ARGSUSED */
void
c_cut(fp, fname)
FILE *fp;
const char *fname;
const char *fname __unused;
{
int ch, col;
char *pos;
fname = NULL;
ch = 0;
for (;;) {
@ -257,9 +255,10 @@ f_cut(fp, fname)
int ch, field, isdelim;
char *pos, *p, sep;
int output;
char *lbuf, *mlbuf = NULL;
char *lbuf, *mlbuf;
size_t lbuflen;
mlbuf = NULL;
for (sep = dchar; (lbuf = fgetln(fp, &lbuflen)) != NULL;) {
/* Assert EOL has a newline. */
if (*(lbuf + lbuflen - 1) != '\n') {