Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig Rename link to link_pkw to avoid shadowing the...
details: https://anonhg.NetBSD.org/src/rev/c105fb1163ed
branches: trunk
changeset: 326129:c105fb1163ed
user: matt <matt%NetBSD.org@localhost>
date: Sun Jan 19 22:31:13 2014 +0000
description:
Rename link to link_pkw to avoid shadowing the link syscall.
diffstat:
sbin/ifconfig/af_link.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 9a397733b386 -r c105fb1163ed sbin/ifconfig/af_link.c
--- a/sbin/ifconfig/af_link.c Sun Jan 19 22:09:34 2014 +0000
+++ b/sbin/ifconfig/af_link.c Sun Jan 19 22:31:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_link.c,v 1.6 2009/04/21 22:46:39 dyoung Exp $ */
+/* $NetBSD: af_link.c,v 1.7 2014/01/19 22:31:13 matt Exp $ */
/*-
* Copyright (c) 2008 David Young. All rights reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_link.c,v 1.6 2009/04/21 22:46:39 dyoung Exp $");
+__RCSID("$NetBSD: af_link.c,v 1.7 2014/01/19 22:31:13 matt Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -59,7 +59,7 @@
.k_bool = true, .k_nextparser = &command_root.pb_parser}
};
-struct pkw link = PKW_INITIALIZER(&link, "link", NULL, NULL,
+struct pkw link_pkw = PKW_INITIALIZER(&link_pkw, "link", NULL, NULL,
linkkw, __arraycount(linkkw), NULL);
static struct afswtch af = {
@@ -127,6 +127,6 @@
link_constructor(void)
{
register_family(&af);
- cmdloop_branch_init(&branch, &link.pk_parser);
+ cmdloop_branch_init(&branch, &link_pkw.pk_parser);
register_cmdloop_branch(&branch);
}
Home |
Main Index |
Thread Index |
Old Index