Source-Changes-HG archive

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

[src/trunk]: src/sys Rename the if43_20_hook to if43_cvtcmd_20_hook



details:   https://anonhg.NetBSD.org/src/rev/c96860ca82ce
branches:  trunk
changeset: 448293:c96860ca82ce
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Jan 29 04:10:10 2019 +0000

description:
Rename the if43_20_hook to if43_cvtcmd_20_hook

diffstat:

 sys/compat/common/if43_20.c |  8 ++++----
 sys/compat/common/if_43.c   |  7 ++++---
 sys/kern/compat_stub.c      |  6 +++---
 sys/sys/compat_stub.h       |  6 +++---
 4 files changed, 14 insertions(+), 13 deletions(-)

diffs (103 lines):

diff -r 7cd9b7c31546 -r c96860ca82ce sys/compat/common/if43_20.c
--- a/sys/compat/common/if43_20.c       Tue Jan 29 04:01:45 2019 +0000
+++ b/sys/compat/common/if43_20.c       Tue Jan 29 04:10:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if43_20.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $     */
+/*     $NetBSD: if43_20.c,v 1.3 2019/01/29 04:10:10 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if43_20.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if43_20.c,v 1.3 2019/01/29 04:10:10 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -83,12 +83,12 @@
 if43_20_init(void)
 {
 
-       MODULE_SET_HOOK(if43_20_hook, "if4320", if43_cvtcmd_20);
+       MODULE_SET_HOOK(if43_cvtcmd_20_hook, "if4320", if43_cvtcmd_20);
 }
 
 void
 if43_20_fini(void)
 {
 
-       MODULE_UNSET_HOOK(if43_20_hook);
+       MODULE_UNSET_HOOK(if43_cvtcmd_20_hook);
 }
diff -r 7cd9b7c31546 -r c96860ca82ce sys/compat/common/if_43.c
--- a/sys/compat/common/if_43.c Tue Jan 29 04:01:45 2019 +0000
+++ b/sys/compat/common/if_43.c Tue Jan 29 04:10:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_43.c,v 1.17 2019/01/29 04:01:45 pgoyette Exp $      */
+/*     $NetBSD: if_43.c,v 1.18 2019/01/29 04:10:10 pgoyette Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1990, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.17 2019/01/29 04:01:45 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.18 2019/01/29 04:10:10 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -214,7 +214,8 @@
                default:
                    {   int rv;
 
-                       MODULE_CALL_HOOK(if43_20_hook, (ncmd), enosys(), rv);
+                       MODULE_CALL_HOOK(if43_cvtcmd_20_hook, (ncmd), enosys(),
+                           rv);
                        if (rv == 0)
                                return ncmd;
                        return cmd;
diff -r 7cd9b7c31546 -r c96860ca82ce sys/kern/compat_stub.c
--- a/sys/kern/compat_stub.c    Tue Jan 29 04:01:45 2019 +0000
+++ b/sys/kern/compat_stub.c    Tue Jan 29 04:10:10 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_stub.c,v 1.4 2019/01/28 21:13:58 christos Exp $     */
+/* $NetBSD: compat_stub.c,v 1.5 2019/01/29 04:10:10 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -162,9 +162,9 @@
 struct if_43_ifioctl_hook_t if_43_ifioctl_hook;
 
 /*
- * if43_20 compatability
+ * if43_cvtcmd_20 compatability
  */
-struct if43_20_hook_t if43_20_hook;
+struct if43_cvtcmd_20_hook_t if43_cvtcmd_20_hook;
 
 /* 
  * tty 43 ioctl compatibility
diff -r 7cd9b7c31546 -r c96860ca82ce sys/sys/compat_stub.h
--- a/sys/sys/compat_stub.h     Tue Jan 29 04:01:45 2019 +0000
+++ b/sys/sys/compat_stub.h     Tue Jan 29 04:10:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_stub.h,v 1.5 2019/01/28 21:16:59 christos Exp $ */
+/*     $NetBSD: compat_stub.h,v 1.6 2019/01/29 04:10:10 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -196,9 +196,9 @@
     (struct socket *, u_long, u_long, void *, struct lwp *));
 
 /*
- * if43_20 compatibility
+ * if43_cvtcmd_20 compatibility
  */
-MODULE_HOOK(if43_20_hook, int, (u_long));
+MODULE_HOOK(if43_cvtcmd_20_hook, int, (u_long));
 
 /*
  * tty 43 ioctl compatibility



Home | Main Index | Thread Index | Old Index