summaryrefslogtreecommitdiffstats
path: root/usr.bin/modstat
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-04-20 05:08:53 +0000
committerwpaul <wpaul@FreeBSD.org>1995-04-20 05:08:53 +0000
commitf8bb0b05f3896a2009249af4e57db64f6dfa3b66 (patch)
tree4fc7fbc778106a26178e10bbc3110f30b130ed9b /usr.bin/modstat
parent52ea19b9e28a056df29a693ccae2d7b8cdc058c1 (diff)
downloadFreeBSD-src-f8bb0b05f3896a2009249af4e57db64f6dfa3b66.zip
FreeBSD-src-f8bb0b05f3896a2009249af4e57db64f6dfa3b66.tar.gz
Undo the stupidity I inflicted on these files and replace it with
some (hopefully) less offensive stupidity: If we detect that a user has loaded a module that fails to initialize itself correctly, panic. There really isn't a safe way to recover from something like this; we can't know that the module is bad until after the entry point is called, by which time it's too late to do anything about it.
Diffstat (limited to 'usr.bin/modstat')
-rw-r--r--usr.bin/modstat/modstat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c
index ed7088f..956acf4 100644
--- a/usr.bin/modstat/modstat.c
+++ b/usr.bin/modstat/modstat.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: modstat.c,v 1.1 1994/08/19 12:14:06 davidg Exp $
+ * $Id: modstat.c,v 1.2 1995/04/18 02:19:17 wpaul Exp $
*/
#include <stdio.h>
@@ -61,8 +61,7 @@ static char *type_names[] = {
"DEV",
"STRMOD",
"EXEC",
- "MISC",
- "UNKNOWN"
+ "MISC"
};
int
OpenPOWER on IntegriCloud