Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sbin/modload pullup 1.22->1.23 (abs)
details: https://anonhg.NetBSD.org/src/rev/241b7a55bf4e
branches: netbsd-1-4
changeset: 468447:241b7a55bf4e
user: perry <perry%NetBSD.org@localhost>
date: Fri Apr 23 21:31:15 1999 +0000
description:
pullup 1.22->1.23 (abs)
diffstat:
sbin/modload/modload.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r ba8e1a800d14 -r 241b7a55bf4e sbin/modload/modload.c
--- a/sbin/modload/modload.c Fri Apr 23 15:45:52 1999 +0000
+++ b/sbin/modload/modload.c Fri Apr 23 21:31:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: modload.c,v 1.22 1999/01/13 23:07:30 sommerfe Exp $ */
+/* $NetBSD: modload.c,v 1.22.2.1 1999/04/23 21:31:15 perry Exp $ */
/*
* Copyright (c) 1993 Terrence R. Lambert.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: modload.c,v 1.22 1999/01/13 23:07:30 sommerfe Exp $");
+__RCSID("$NetBSD: modload.c,v 1.22.2.1 1999/04/23 21:31:15 perry Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -266,10 +266,9 @@
p = strrchr(modout, '.');
if (!p || strcmp(p, ".o"))
errx(2, "module object must end in .o");
- if (out == NULL) {
+ *p = '\0';
+ if (out == NULL)
out = modout;
- *p = '\0';
- }
/*
* Verify that the entry point for the module exists.
Home |
Main Index |
Thread Index |
Old Index