Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Change the internal name of the module to match its ...
details: https://anonhg.NetBSD.org/src/rev/2214e08cd525
branches: trunk
changeset: 346902:2214e08cd525
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Aug 06 12:42:40 2016 +0000
description:
Change the internal name of the module to match its external (file
system) name. Otherwise "bad things" can happen, such as modload(8)
being able to load a second copy!
diffstat:
sys/net/if_ppp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 3b34ddeeaf15 -r 2214e08cd525 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c Sat Aug 06 09:29:28 2016 +0000
+++ b/sys/net/if_ppp.c Sat Aug 06 12:42:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ppp.c,v 1.153 2016/08/06 02:35:06 pgoyette Exp $ */
+/* $NetBSD: if_ppp.c,v 1.154 2016/08/06 12:42:40 pgoyette Exp $ */
/* Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp */
/*
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.153 2016/08/06 02:35:06 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.154 2016/08/06 12:42:40 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "ppp.h"
@@ -1947,14 +1947,14 @@
#define PPP_DEP
#endif
-MODULE(MODULE_CLASS_DRIVER, ppp, PPP_DEP "slcompress");
+MODULE(MODULE_CLASS_DRIVER, if_ppp, PPP_DEP "slcompress");
#ifdef _MODULE
CFDRIVER_DECL(ppp, DV_IFNET, NULL);
#endif
static int
-ppp_modcmd(modcmd_t cmd, void *arg)
+if_ppp_modcmd(modcmd_t cmd, void *arg)
{
int error = 0;
Home |
Main Index |
Thread Index |
Old Index