From owner-svn-src-head@FreeBSD.ORG Tue Mar 17 19:37:48 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06DCD1065705; Tue, 17 Mar 2009 19:37:48 +0000 (UTC) (envelope-from dwmalone@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E7D348FC12; Tue, 17 Mar 2009 19:37:47 +0000 (UTC) (envelope-from dwmalone@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2HJbl4N004445; Tue, 17 Mar 2009 19:37:47 GMT (envelope-from dwmalone@svn.freebsd.org) Received: (from dwmalone@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2HJblWL004444; Tue, 17 Mar 2009 19:37:47 GMT (envelope-from dwmalone@svn.freebsd.org) Message-Id: <200903171937.n2HJblWL004444@svn.freebsd.org> From: David Malone Date: Tue, 17 Mar 2009 19:37:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189934 - head/usr.bin/ministat X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 19:37:50 -0000 Author: dwmalone Date: Tue Mar 17 19:37:47 2009 New Revision: 189934 URL: http://svn.freebsd.org/changeset/base/189934 Log: Fix some warns - mainly signedness and unused variables. Modified: head/usr.bin/ministat/ministat.c Modified: head/usr.bin/ministat/ministat.c ============================================================================== --- head/usr.bin/ministat/ministat.c Tue Mar 17 16:30:49 2009 (r189933) +++ head/usr.bin/ministat/ministat.c Tue Mar 17 19:37:47 2009 (r189934) @@ -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;