From owner-cvs-all Wed Feb 28 7:57:43 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 21EAF37B71C; Wed, 28 Feb 2001 07:57:39 -0800 (PST) (envelope-from dwmalone@FreeBSD.org) Received: (from dwmalone@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1SFvdg57379; Wed, 28 Feb 2001 07:57:39 -0800 (PST) (envelope-from dwmalone) Message-Id: <200102281557.f1SFvdg57379@freefall.freebsd.org> From: David Malone Date: Wed, 28 Feb 2001 07:57:38 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/units units.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dwmalone 2001/02/28 07:57:38 PST Modified files: usr.bin/units units.c Log: Give units a bit of a cleanup: 1) Fix a bug where the recursion on prefixes where if recusrion failed then the next attempt started too far along the string. 2) Up some internal limits that we were about to hit off. 3) Change the constness and signedness of some things and complete missing prototypes. 4) Remove the readerror function 'cos it could print out the wrong wrong file name. Replace it with more useful error messages. 5) Use sizeof when passing buffers to fgets. 6) Warn about empty prefix definitions. Reviewed by: iedowse Revision Changes Path 1.8 +27 -33 src/usr.bin/units/units.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message