Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Set the "required modules" to NULL, not to an empty string.
details: https://anonhg.NetBSD.org/src/rev/d825469f41d9
branches: trunk
changeset: 450800:d825469f41d9
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Apr 26 08:38:25 2019 +0000
description:
Set the "required modules" to NULL, not to an empty string.
It really doesn't make that much difference to the code, but the output
from modstat(8) is different! (With an empty string in the MODULE() macro
modstat reports an empty string, but with a NULL in the macro, modstat
prints a '-' just like it does for other "empty" fields.)
diffstat:
sys/dev/sysmon/sysmon.c | 6 +++---
sys/kern/sys_ptrace_common.c | 6 +++---
sys/net/if_loop.c | 6 +++---
sys/net/if_tun.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (102 lines):
diff -r ba1ac0380135 -r d825469f41d9 sys/dev/sysmon/sysmon.c
--- a/sys/dev/sysmon/sysmon.c Fri Apr 26 08:28:11 2019 +0000
+++ b/sys/dev/sysmon/sysmon.c Fri Apr 26 08:38:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $ */
+/* $NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -307,7 +307,7 @@
return (error);
}
-MODULE(MODULE_CLASS_DRIVER, sysmon, "");
+MODULE(MODULE_CLASS_DRIVER, sysmon, NULL);
static int
sm_init_once(void)
diff -r ba1ac0380135 -r d825469f41d9 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Fri Apr 26 08:28:11 2019 +0000
+++ b/sys/kern/sys_ptrace_common.c Fri Apr 26 08:38:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.47 2019/02/03 03:19:28 mrg Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.48 2019/04/26 08:38:25 pgoyette Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.47 2019/02/03 03:19:28 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.48 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -1576,7 +1576,7 @@
}
#endif /* PTRACE */
-MODULE(MODULE_CLASS_EXEC, ptrace_common, "");
+MODULE(MODULE_CLASS_EXEC, ptrace_common, NULL);
static int
ptrace_common_modcmd(modcmd_t cmd, void *arg)
diff -r ba1ac0380135 -r d825469f41d9 sys/net/if_loop.c
--- a/sys/net/if_loop.c Fri Apr 26 08:28:11 2019 +0000
+++ b/sys/net/if_loop.c Fri Apr 26 08:38:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_loop.c,v 1.106 2018/11/15 10:06:07 maxv Exp $ */
+/* $NetBSD: if_loop.c,v 1.107 2019/04/26 08:38:25 pgoyette Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.106 2018/11/15 10:06:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.107 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -530,4 +530,4 @@
*/
#include "if_module.h"
-IF_MODULE(MODULE_CLASS_DRIVER, loop, "")
+IF_MODULE(MODULE_CLASS_DRIVER, loop, NULL)
diff -r ba1ac0380135 -r d825469f41d9 sys/net/if_tun.c
--- a/sys/net/if_tun.c Fri Apr 26 08:28:11 2019 +0000
+++ b/sys/net/if_tun.c Fri Apr 26 08:38:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tun.c,v 1.155 2019/03/25 10:04:48 pgoyette Exp $ */
+/* $NetBSD: if_tun.c,v 1.156 2019/04/26 08:38:25 pgoyette Exp $ */
/*
* Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.155 2019/03/25 10:04:48 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.156 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1142,4 +1142,4 @@
*/
#include "if_module.h"
-IF_MODULE(MODULE_CLASS_DRIVER, tun, "")
+IF_MODULE(MODULE_CLASS_DRIVER, tun, NULL)
Home |
Main Index |
Thread Index |
Old Index