Fix a few cases that relied on 'implicit int' (constraint violation in C99).
This commit is contained in:
parent
2e96a4c68b
commit
70c3c978b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131990
@ -83,7 +83,7 @@ static const char rcsid[] =
|
|||||||
|
|
||||||
/* File scope variables */
|
/* File scope variables */
|
||||||
|
|
||||||
static debug = 0;
|
static int debug = 0;
|
||||||
|
|
||||||
void perr(const char *a);
|
void perr(const char *a);
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
|
@ -417,7 +417,7 @@ void
|
|||||||
readsamples(pfile)
|
readsamples(pfile)
|
||||||
FILE *pfile;
|
FILE *pfile;
|
||||||
{
|
{
|
||||||
register i;
|
int i;
|
||||||
intmax_t sample;
|
intmax_t sample;
|
||||||
|
|
||||||
if (samples == 0) {
|
if (samples == 0) {
|
||||||
|
@ -91,6 +91,7 @@ char *sperc2(int, int);
|
|||||||
|
|
||||||
#define DELTA(field) (nfsstats.field - lastst.field)
|
#define DELTA(field) (nfsstats.field - lastst.field)
|
||||||
|
|
||||||
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
|
@ -705,7 +705,7 @@ timer(i)
|
|||||||
static void
|
static void
|
||||||
cleanup()
|
cleanup()
|
||||||
{
|
{
|
||||||
static in_cleanup = 0;
|
static int in_cleanup = 0;
|
||||||
|
|
||||||
if (!in_cleanup) {
|
if (!in_cleanup) {
|
||||||
in_cleanup++;
|
in_cleanup++;
|
||||||
|
@ -367,6 +367,7 @@ void line_flags(unit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char *argv[];
|
char *argv[];
|
||||||
|
Loading…
Reference in New Issue
Block a user