Subject: CVS commit: src/sys/dev/wscons
To: None <source-changes@NetBSD.org>
From: Emmanuel Dreyfus <firstname.lastname@example.org>
Date: 09/21/2003 18:48:01
Module Name: src
Committed By: manu
Date: Sun Sep 21 18:48:00 UTC 2003
Do much more sanity checks when handling entries in the sc_scr array
of struct wsdisplay_softc. Unused entries are NULL, and there were
a lot of places where we did not checked that the caller did not
requested an operation on a NULL entry.
While we are there, one bit of KNFification, and make return code more
consistent by always returning the same code (EINVAL) when a screen
number higer than the maximum is requested.
To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 src/sys/dev/wscons/wsdisplay.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.