summaryrefslogtreecommitdiffstats
path: root/usr.bin/ministat
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2009-03-17 19:37:47 +0000
committerdwmalone <dwmalone@FreeBSD.org>2009-03-17 19:37:47 +0000
commit6673b1cf7ec019c1335649242606d44c785b5578 (patch)
treeb6f11a09743430df06730331b9961e4f807ea314 /usr.bin/ministat
parent9c2a3fc7812497e081f6d5eafee175078576df39 (diff)
downloadFreeBSD-src-6673b1cf7ec019c1335649242606d44c785b5578.zip
FreeBSD-src-6673b1cf7ec019c1335649242606d44c785b5578.tar.gz
Fix some warns - mainly signedness and unused variables.
Diffstat (limited to 'usr.bin/ministat')
-rw-r--r--usr.bin/ministat/ministat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c
index 5873ca7..720922e 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;
OpenPOWER on IntegriCloud