Fix a few cases that relied on 'implicit int' (constraint violation in C99).
This commit is contained in:
parent
d5cfc74b93
commit
7a2af4334a
@ -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);
|
||||
|
@ -417,7 +417,7 @@ void
|
||||
readsamples(pfile)
|
||||
FILE *pfile;
|
||||
{
|
||||
register i;
|
||||
int i;
|
||||
intmax_t sample;
|
||||
|
||||
if (samples == 0) {
|
||||
|
@ -91,6 +91,7 @@ char *sperc2(int, int);
|
||||
|
||||
#define DELTA(field) (nfsstats.field - lastst.field)
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -705,7 +705,7 @@ timer(i)
|
||||
static void
|
||||
cleanup()
|
||||
{
|
||||
static in_cleanup = 0;
|
||||
static int in_cleanup = 0;
|
||||
|
||||
if (!in_cleanup) {
|
||||
in_cleanup++;
|
||||
|
@ -367,6 +367,7 @@ void line_flags(unit)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
Loading…
Reference in New Issue
Block a user