summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2009-12-28 22:56:30 +0000
committerantoine <antoine@FreeBSD.org>2009-12-28 22:56:30 +0000
commitbfd388c026e6aeb5427df50347b59d62feb3072e (patch)
tree368556d68241b943dc9c2ec710bd21f97a0e608d /usr.sbin
parent2414a09002c0b7080b6044e995d127de758f3e12 (diff)
downloadFreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.zip
FreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.tar.gz
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cpucontrol/cpucontrol.c2
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c2
-rw-r--r--usr.sbin/ypserv/yp_main.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/cpucontrol/cpucontrol.c b/usr.sbin/cpucontrol/cpucontrol.c
index 8b3ca1d..b0ef9a3 100644
--- a/usr.sbin/cpucontrol/cpucontrol.c
+++ b/usr.sbin/cpucontrol/cpucontrol.c
@@ -83,7 +83,7 @@ struct datadir {
const char *path;
SLIST_ENTRY(datadir) next;
};
-static SLIST_HEAD(, datadir) datadirs = SLIST_HEAD_INITIALIZER(&datadirs);
+static SLIST_HEAD(, datadir) datadirs = SLIST_HEAD_INITIALIZER(datadirs);
struct ucode_handler {
ucode_probe_t *probe;
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index 9814126..a403852 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -141,7 +141,7 @@ struct pmcstat_pmcrecord {
};
static LIST_HEAD(,pmcstat_pmcrecord) pmcstat_pmcs =
- LIST_HEAD_INITIALIZER(&pmcstat_pmcs);
+ LIST_HEAD_INITIALIZER(pmcstat_pmcs);
/*
diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c
index d8c2ce7..8df5544 100644
--- a/usr.sbin/ypserv/yp_main.c
+++ b/usr.sbin/ypserv/yp_main.c
@@ -98,14 +98,14 @@ struct socklistent {
SLIST_ENTRY(socklistent) sle_next;
};
static SLIST_HEAD(, socklistent) sle_head =
- SLIST_HEAD_INITIALIZER(&sle_head);
+ SLIST_HEAD_INITIALIZER(sle_head);
struct bindaddrlistent {
const char *ble_hostname;
SLIST_ENTRY(bindaddrlistent) ble_next;
};
static SLIST_HEAD(, bindaddrlistent) ble_head =
- SLIST_HEAD_INITIALIZER(&ble_head);
+ SLIST_HEAD_INITIALIZER(ble_head);
static char *servname = "0";
OpenPOWER on IntegriCloud