From 90972e91da57364a785ba7ab812be8a369e46547 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Fri, 8 Feb 2008 10:58:50 +0000 Subject: WARNS fixes: remove two unused variables and add some constness. --- usr.bin/ministat/ministat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c index 660becf..3d2c3ad 100644 --- a/usr.bin/ministat/ministat.c +++ b/usr.bin/ministat/ministat.c @@ -249,7 +249,6 @@ VitalsHead(void) static void Vitals(struct dataset *ds, int flag) { - double a; 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)); @@ -260,7 +259,7 @@ static void Relative(struct dataset *ds, struct dataset *rs, int confidx) { double spool, s, d, e, t; - int i, c; + int i; i = ds->n + rs->n - 2; if (i > NSTUDENT) @@ -466,7 +465,7 @@ DumpPlot(void) static struct dataset * -ReadSet(char *n, int column, char *delim) +ReadSet(const char *n, int column, const char *delim) { FILE *f; char buf[BUFSIZ], *p, *t; @@ -548,7 +547,7 @@ main(int argc, char **argv) struct dataset *ds[7]; int nds; double a; - char *delim = " \t"; + const char *delim = " \t"; char *p; int c, i, ci; int column = 1; -- cgit v1.1