From owner-freebsd-audit Fri Sep 28 0:52:43 2001 Delivered-To: freebsd-audit@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 3D07E37B40A for ; Fri, 28 Sep 2001 00:52:37 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f8S7pEd34327; Fri, 28 Sep 2001 10:51:14 +0300 (EEST) (envelope-from ru) Date: Fri, 28 Sep 2001 10:51:14 +0300 From: Ruslan Ermilov To: "Sergey A. Osokin" Cc: audit@FreeBSD.ORG Subject: Re: iostat(8) WARNS=2 cleanup Message-ID: <20010928105114.E30062@sunbay.com> References: <20010927225814.A46080@freebsd.org.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010927225814.A46080@freebsd.org.ru>; from osa@freebsd.org.ru on Thu, Sep 27, 2001 at 10:58:14PM +0400 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 27, 2001 at 10:58:14PM +0400, Sergey A. Osokin wrote: > Hello. > Please review patch. > Thanks. > Revision 1.23 has been committed. Please resubmit. > --- iostat.orig/iostat.c Mon Sep 24 13:20:34 2001 > +++ iostat/iostat.c Mon Sep 24 13:19:01 2001 > > + (const char *)namelist[X_TK_NIN].n_name = "_tk_nin"; > + (const char *)namelist[X_TK_NOUT].n_name = "_tk_nout"; > + (const char *)namelist[X_CP_TIME].n_name = "_cp_time"; > + (const char *)namelist[X_BOOTTIME].n_name = "_boottime"; > + namelist[4].n_name = NULL; > I don't like this. We need to fix the "struct nlist" definition in instead. > @@ -580,12 +580,12 @@ > static void > phdr(int signo) > { > - > - phdr_flag = 1; > + if (signo == SIGCONT) > + phdr_flag = 1; > } > This is not something that qualifies like WARNS cleanup. > static int > readvar(kvm_t *kd, const char *name, int nlid, void *ptr, size_t len) > { > if (kd != NULL) { > - ssize_t nbytes; > + size_t nbytes; > > nbytes = kvm_read(kd, nlid, ptr, len); > Why? kvm_read(3) returns ``ssize_t''. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message