Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 15:46:30 +0100 (CET)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        freebsd-geom@freebsd.org
Subject:   Error checking for g_mod_event() and friends
Message-ID:  <20040127154303.E92925@pcle2.cc.univie.ac.at>

next in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040127154303.E92925>