From owner-cvs-all Sat Feb 22 16:24: 6 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD88B37B401; Sat, 22 Feb 2003 16:24:04 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FEEE43F3F; Sat, 22 Feb 2003 16:24:04 -0800 (PST) (envelope-from mikeh@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1N0O40U098699; Sat, 22 Feb 2003 16:24:04 -0800 (PST) (envelope-from mikeh@repoman.freebsd.org) Received: (from mikeh@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1N0O4og098698; Sat, 22 Feb 2003 16:24:04 -0800 (PST) Message-Id: <200302230024.h1N0O4og098698@repoman.freebsd.org> From: Mike Heffner Date: Sat, 22 Feb 2003 16:24:04 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen setmode.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mikeh 2003/02/22 16:24:04 PST Modified files: lib/libc/gen setmode.c Log: More changes from NetBSD: * use correct error detection of realloc failure * strtol negative return check * use strtol to validate string instead of rolling our own validation code * terminate the command sequence correctly Revision Changes Path 1.9 +11 -9 src/lib/libc/gen/setmode.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message