aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ministat
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2008-02-08 10:58:50 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2008-02-08 10:58:50 +0000
commit84eebcc257fdaedf3643fadab7ea29da83759403 (patch)
tree6764678041466f4559dcf66839254f15e3b54ba1 /usr.bin/ministat
parent340b079be05504e2f9f4a624511c4e0558158570 (diff)
downloadsrc-84eebcc257fdaedf3643fadab7ea29da83759403.tar.gz
src-84eebcc257fdaedf3643fadab7ea29da83759403.zip
WARNS fixes: remove two unused variables and add some constness.
Notes
Notes: svn path=/head/; revision=176106
Diffstat (limited to 'usr.bin/ministat')
-rw-r--r--usr.bin/ministat/ministat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c
index 660becf207e1..3d2c3adbcae7 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;