mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
WARNS fixes: remove two unused variables and add some constness.
This commit is contained in:
parent
340b079be0
commit
84eebcc257
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176106
@ -249,7 +249,6 @@ VitalsHead(void)
|
|||||||
static void
|
static void
|
||||||
Vitals(struct dataset *ds, int flag)
|
Vitals(struct dataset *ds, int flag)
|
||||||
{
|
{
|
||||||
double a;
|
|
||||||
|
|
||||||
printf("%c %3d %13.8g %13.8g %13.8g %13.8g %13.8g", symbol[flag],
|
printf("%c %3d %13.8g %13.8g %13.8g %13.8g %13.8g", symbol[flag],
|
||||||
ds->n, Min(ds), Max(ds), Median(ds), Avg(ds), Stddev(ds));
|
ds->n, Min(ds), Max(ds), Median(ds), Avg(ds), Stddev(ds));
|
||||||
@ -260,7 +259,7 @@ static void
|
|||||||
Relative(struct dataset *ds, struct dataset *rs, int confidx)
|
Relative(struct dataset *ds, struct dataset *rs, int confidx)
|
||||||
{
|
{
|
||||||
double spool, s, d, e, t;
|
double spool, s, d, e, t;
|
||||||
int i, c;
|
int i;
|
||||||
|
|
||||||
i = ds->n + rs->n - 2;
|
i = ds->n + rs->n - 2;
|
||||||
if (i > NSTUDENT)
|
if (i > NSTUDENT)
|
||||||
@ -466,7 +465,7 @@ DumpPlot(void)
|
|||||||
|
|
||||||
|
|
||||||
static struct dataset *
|
static struct dataset *
|
||||||
ReadSet(char *n, int column, char *delim)
|
ReadSet(const char *n, int column, const char *delim)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[BUFSIZ], *p, *t;
|
char buf[BUFSIZ], *p, *t;
|
||||||
@ -548,7 +547,7 @@ main(int argc, char **argv)
|
|||||||
struct dataset *ds[7];
|
struct dataset *ds[7];
|
||||||
int nds;
|
int nds;
|
||||||
double a;
|
double a;
|
||||||
char *delim = " \t";
|
const char *delim = " \t";
|
||||||
char *p;
|
char *p;
|
||||||
int c, i, ci;
|
int c, i, ci;
|
||||||
int column = 1;
|
int column = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user