Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libnpf rename component.c -> npf_component.c
details: https://anonhg.NetBSD.org/src/rev/b5e507e451c6
branches: trunk
changeset: 327652:b5e507e451c6
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Mar 13 02:07:24 2014 +0000
description:
rename component.c -> npf_component.c
diffstat:
sys/rump/net/lib/libnpf/Makefile | 4 +-
sys/rump/net/lib/libnpf/component.c | 35 ---------------------------------
sys/rump/net/lib/libnpf/npf_component.c | 35 +++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 37 deletions(-)
diffs (96 lines):
diff -r ad463aca14dc -r b5e507e451c6 sys/rump/net/lib/libnpf/Makefile
--- a/sys/rump/net/lib/libnpf/Makefile Thu Mar 13 02:07:03 2014 +0000
+++ b/sys/rump/net/lib/libnpf/Makefile Thu Mar 13 02:07:24 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2014/03/03 19:09:52 pooka Exp $
+# $NetBSD: Makefile,v 1.12 2014/03/13 02:07:24 pooka Exp $
#
# Public Domain.
#
@@ -17,7 +17,7 @@
SRCS+= npf_ext_log.c npf_ext_normalize.c npf_ext_rndblock.c
-SRCS+= component.c
+SRCS+= npf_component.c
.include <bsd.own.mk>
diff -r ad463aca14dc -r b5e507e451c6 sys/rump/net/lib/libnpf/component.c
--- a/sys/rump/net/lib/libnpf/component.c Thu Mar 13 02:07:03 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-/* $NetBSD: component.c,v 1.3 2014/02/26 02:39:29 pooka Exp $ */
-
-/*
- * Public Domain.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2014/02/26 02:39:29 pooka Exp $");
-
-#include <sys/param.h>
-#include <sys/conf.h>
-#include <sys/device.h>
-#include <sys/stat.h>
-
-#include "rump_private.h"
-#include "rump_vfs_private.h"
-
-extern const struct cdevsw npf_cdevsw;
-
-RUMP_COMPONENT(RUMP_COMPONENT_NET)
-{
- devmajor_t bmajor = NODEVMAJOR, cmajor = NODEVMAJOR;
- int error;
-
- error = devsw_attach("npf", NULL, &bmajor, &npf_cdevsw, &cmajor);
- if (error) {
- panic("npf attach failed: %d", error);
- }
-
- error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/npf", cmajor, 0);
- if (error) {
- panic("npf device node creation failed: %d", error);
- }
- devsw_detach(NULL, &npf_cdevsw);
-}
diff -r ad463aca14dc -r b5e507e451c6 sys/rump/net/lib/libnpf/npf_component.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libnpf/npf_component.c Thu Mar 13 02:07:24 2014 +0000
@@ -0,0 +1,35 @@
+/* $NetBSD: npf_component.c,v 1.1 2014/03/13 02:07:24 pooka Exp $ */
+
+/*
+ * Public Domain.
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: npf_component.c,v 1.1 2014/03/13 02:07:24 pooka Exp $");
+
+#include <sys/param.h>
+#include <sys/conf.h>
+#include <sys/device.h>
+#include <sys/stat.h>
+
+#include "rump_private.h"
+#include "rump_vfs_private.h"
+
+extern const struct cdevsw npf_cdevsw;
+
+RUMP_COMPONENT(RUMP_COMPONENT_NET)
+{
+ devmajor_t bmajor = NODEVMAJOR, cmajor = NODEVMAJOR;
+ int error;
+
+ error = devsw_attach("npf", NULL, &bmajor, &npf_cdevsw, &cmajor);
+ if (error) {
+ panic("npf attach failed: %d", error);
+ }
+
+ error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/npf", cmajor, 0);
+ if (error) {
+ panic("npf device node creation failed: %d", error);
+ }
+ devsw_detach(NULL, &npf_cdevsw);
+}
Home |
Main Index |
Thread Index |
Old Index