From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 06:47:10 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7126116A4CE for ; Tue, 27 Jan 2004 06:47:10 -0800 (PST) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDFA643D5D for ; Tue, 27 Jan 2004 06:46:52 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id i0REkUI4288494 for ; Tue, 27 Jan 2004 15:46:36 +0100 Date: Tue, 27 Jan 2004 15:46:30 +0100 (CET) From: Lukas Ertl To: freebsd-geom@freebsd.org Message-ID: <20040127154303.E92925@pcle2.cc.univie.ac.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 Subject: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 14:47:10 -0000 Hi, is there a specific reason that the .init function of a class is declared to return "void"? I'd like to change that to an int, so we could do error checking, and subsequently modify g_load_class() to check for errors and so on. Additionally, I've seen several calls to g_malloc() where the return values aren't checked - should I prepare some patches for these? regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/