Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/hpux LKMify, g/c no more needed extern declaratio...
details: https://anonhg.NetBSD.org/src/rev/1a6dcb6db27f
branches: trunk
changeset: 499899:1a6dcb6db27f
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Dec 01 18:05:53 2000 +0000
description:
LKMify, g/c no more needed extern declarations, make hpuxtobsdioctl() static
diffstat:
sys/compat/hpux/hpux_compat.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (44 lines):
diff -r a50540425c30 -r 1a6dcb6db27f sys/compat/hpux/hpux_compat.c
--- a/sys/compat/hpux/hpux_compat.c Fri Dec 01 18:03:54 2000 +0000
+++ b/sys/compat/hpux/hpux_compat.c Fri Dec 01 18:05:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpux_compat.c,v 1.52 2000/11/19 12:47:51 simonb Exp $ */
+/* $NetBSD: hpux_compat.c,v 1.53 2000/12/01 18:05:53 jdolecek Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -45,8 +45,10 @@
/*
* Various HP-UX compatibility routines
*/
+#if defined(_KERNEL) && !defined(_LKM)
#include "opt_sysv.h"
#include "opt_compat_43.h"
+#endif
#ifndef COMPAT_43
#define COMPAT_43
@@ -95,13 +97,7 @@
int unimpresponse = 0;
#endif
-
-extern char sigcode[], esigcode[];
-extern struct sysent hpux_sysent[];
-extern const char * const hpux_syscallnames[];
-
-int hpuxtobsdioctl __P((u_long));
-
+static int hpuxtobsdioctl __P((u_long));
static int hpux_scale __P((struct timeval *));
/*
@@ -699,7 +695,7 @@
return (sys_mmap(p, &nargs, retval));
}
-int
+static int
hpuxtobsdioctl(com)
u_long com;
{
Home |
Main Index |
Thread Index |
Old Index