commit | 22f6e99d5b0c54758646334c1153737a5585bd57 | [log] [tgz] |
---|---|---|
author | Joe Hershberger <joe.hershberger@ni.com> | Wed May 23 07:59:14 2012 +0000 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Wed May 23 17:46:21 2012 -0500 |
tree | e70b3679ff62e93345fc0f7e3960d37582cea612 | |
parent | adf5d93e441eb3eacd8c0430d6064b35d47ad2a5 [diff] [blame] |
net: Refactor to protect access to the NetState variable Changes to NetState now go through an accessor function called net_set_state() Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/net/cdp.c b/net/cdp.c index 3dab6a1..fa92409 100644 --- a/net/cdp.c +++ b/net/cdp.c
@@ -235,7 +235,7 @@ if (!CDPOK) NetStartAgain(); else - NetState = NETLOOP_SUCCESS; + net_set_state(NETLOOP_SUCCESS); } static void