From 6673b1cf7ec019c1335649242606d44c785b5578 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Tue, 17 Mar 2009 19:37:47 +0000 Subject: [PATCH] Fix some warns - mainly signedness and unused variables. --- usr.bin/ministat/ministat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c index 5873ca7aace1..720922eb6674 100644 --- a/usr.bin/ministat/ministat.c +++ b/usr.bin/ministat/ministat.c @@ -136,7 +136,7 @@ struct dataset { double *points; unsigned lpoints; double sy, syy; - int n; + unsigned n; }; static struct dataset * @@ -191,8 +191,6 @@ Avg(struct dataset *ds) static double Median(struct dataset *ds) { - int even, i; - struct point *p1, *p2; return (ds->points[ds->n / 2]); } @@ -317,8 +315,8 @@ static void PlotSet(struct dataset *ds, int val) { struct plot *pl; - struct point *pp; - int i, j, m, x, n; + int i, j, m, x; + unsigned n; int bar; pl = &plot;