Fix a few cases that relied on 'implicit int' (constraint violation in C99).

This commit is contained in:
Stefan Farfeleder 2004-07-11 17:37:33 +00:00
parent 2e96a4c68b
commit 70c3c978b9
5 changed files with 5 additions and 3 deletions

View File

@ -83,7 +83,7 @@ static const char rcsid[] =
/* File scope variables */
static debug = 0;
static int debug = 0;
void perr(const char *a);
static void usage(void);

View File

@ -417,7 +417,7 @@ void
readsamples(pfile)
FILE *pfile;
{
register i;
int i;
intmax_t sample;
if (samples == 0) {

View File

@ -91,6 +91,7 @@ char *sperc2(int, int);
#define DELTA(field) (nfsstats.field - lastst.field)
int
main(argc, argv)
int argc;
char **argv;

View File

@ -705,7 +705,7 @@ timer(i)
static void
cleanup()
{
static in_cleanup = 0;
static int in_cleanup = 0;
if (!in_cleanup) {
in_cleanup++;

View File

@ -367,6 +367,7 @@ void line_flags(unit)
}
int
main(argc, argv)
int argc;
char *argv[];