Skip to content

Commit d53d335

Browse files
committed
squash implicit int warnings
1 parent 38bff78 commit d53d335

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/pair.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ char *target, *argv0;
6868
return (!strcmp (target, argv0+offset));
6969
}
7070

71-
void initial (argc, argv) char **argv;
71+
void initial (argc, argv) int argc; char **argv;
7272
{
7373
int argnum;
7474
char *optr;
@@ -283,13 +283,13 @@ void printstats ()
283283
}
284284

285285
double
286-
standev (sum, ss, count) double sum, ss;
286+
standev (sum, ss, count) double sum, ss; int count;
287287
{
288288
if (count <= 1) return (0.0);
289289
return (sqrt ((ss-sum*sum/count)/(count-1)));
290290
}
291291

292-
int main (argc, argv) char **argv;
292+
int main (argc, argv) int argc; char **argv;
293293
{
294294
Argv0 = argv[0];
295295
initial (argc, argv);

src/pof.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <math.h>
55
double
6-
pof (F, m, n) double F;
6+
pof (F, m, n) double F; int m,n;
77
{
88
int i, j;
99
int a, b;

src/scatterplot.c

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
void scatterplot (x, y, n, plotchar, height, width, border)
1818
float *x, *y;
19+
int n, plotchar, height, width, border;
1920
{
2021
double min_x = *x, min_y = *y;
2122
double max_x = *x, max_y = *y;

src/strings.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#endif
1414

1515
int sstrings (line, abase, maxstrings, maxchars)
16-
char *line;
17-
char *abase;
16+
char *line, *abase;
17+
int maxstrings, maxchars;
1818
{
1919
int nstrings = 0;
2020
int nchars;
@@ -39,6 +39,7 @@ int sstrings (line, abase, maxstrings, maxchars)
3939
int fstrings (ioptr, abase, maxstrings, maxchars)
4040
FILE *ioptr;
4141
char *abase;
42+
int maxstrings, maxchars;
4243
{
4344
char line[BUFSIZ];
4445

0 commit comments

Comments
 (0)