Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys Allocate the function vector only once.



details:   https://anonhg.NetBSD.org/src/rev/362da84b3d9b
branches:  pgoyette-compat
changeset: 320990:362da84b3d9b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Mar 09 10:41:05 2018 +0000

description:
Allocate the function vector only once.

diffstat:

 sys/compat/common/sysv_mod.h |  4 ++--
 sys/kern/sysv_ipc.c          |  6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 2035e64163df -r 362da84b3d9b sys/compat/common/sysv_mod.h
--- a/sys/compat/common/sysv_mod.h      Fri Mar 09 09:37:01 2018 +0000
+++ b/sys/compat/common/sysv_mod.h      Fri Mar 09 10:41:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_mod.h,v 1.1.2.1 2018/03/09 02:02:59 pgoyette Exp $        */
+/*     $NetBSD: sysv_mod.h,v 1.1.2.2 2018/03/09 10:41:05 pgoyette Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,6 +34,6 @@
 
 #include <sys/sysctl.h>
 
-int (*vec_sysvipc50_sysctl)(SYSCTLFN_PROTO);
+extern int (*vec_sysvipc50_sysctl)(SYSCTLFN_PROTO);
 
 #endif /* _COMPAT_COMMON_SYSV_IPC_MOD_H_ */
diff -r 2035e64163df -r 362da84b3d9b sys/kern/sysv_ipc.c
--- a/sys/kern/sysv_ipc.c       Fri Mar 09 09:37:01 2018 +0000
+++ b/sys/kern/sysv_ipc.c       Fri Mar 09 10:41:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_ipc.c,v 1.32.16.2 2018/03/09 03:58:33 pgoyette Exp $      */
+/*     $NetBSD: sysv_ipc.c,v 1.32.16.3 2018/03/09 10:41:05 pgoyette Exp $      */
 
 /*-
  * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.32.16.2 2018/03/09 03:58:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.32.16.3 2018/03/09 10:41:05 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sysv.h"
@@ -64,6 +64,8 @@
 
 #include <compat/common/sysv_mod.h>    /* for sysctl routine vector */
 
+int (*vec_sysvipc50_sysctl)(SYSCTLFN_PROTO);
+
 /*
  * Values in support of System V compatible shared memory.     XXX
  * (originally located in sys/conf/param.c)



Home | Main Index | Thread Index | Old Index