Date: Sun, 2 Nov 2014 05:51:32 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273960 - head/sys/netgraph Message-ID: <201411020551.sA25pW6Z098614@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Sun Nov 2 05:51:31 2014 New Revision: 273960 URL: https://svnweb.freebsd.org/changeset/base/273960 Log: NG_NODE_NAME(node) is always not NULL. Use correct macro. Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com> Modified: head/sys/netgraph/ng_bridge.c Modified: head/sys/netgraph/ng_bridge.c ============================================================================== --- head/sys/netgraph/ng_bridge.c Sun Nov 2 02:32:33 2014 (r273959) +++ head/sys/netgraph/ng_bridge.c Sun Nov 2 05:51:31 2014 (r273960) @@ -1046,7 +1046,7 @@ ng_bridge_nodename(node_p node) { static char name[NG_NODESIZ]; - if (NG_NODE_NAME(node) != NULL) + if (NG_NODE_HAS_NAME(node)) snprintf(name, sizeof(name), "%s", NG_NODE_NAME(node)); else snprintf(name, sizeof(name), "[%x]", ng_node2ID(node));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411020551.sA25pW6Z098614>