From owner-cvs-src@FreeBSD.ORG Sun Nov 20 12:12:32 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F46D16A41F; Sun, 20 Nov 2005 12:12:32 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1959A43D4C; Sun, 20 Nov 2005 12:12:32 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jAKCCVjm026068; Sun, 20 Nov 2005 12:12:31 GMT (envelope-from le@repoman.freebsd.org) Received: (from le@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAKCCV2c026067; Sun, 20 Nov 2005 12:12:31 GMT (envelope-from le) Message-Id: <200511201212.jAKCCV2c026067@repoman.freebsd.org> From: Lukas Ertl Date: Sun, 20 Nov 2005 12:12:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/geom/vinum geom_vinum_rename.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 12:12:32 -0000 le 2005-11-20 12:12:31 UTC FreeBSD src repository Modified files: sys/geom/vinum geom_vinum_rename.c Log: Always declare variables at the start of the function. Don't allocate potentially large variables on the stack. Check strsep() return values when the string comes from userland. Shorten variable names for lucidity's sake. most of the stuff: Pointed out by: njl@ Revision Changes Path 1.2 +110 -47 src/sys/geom/vinum/geom_vinum_rename.c