From: Ben Pfaff Date: Tue, 23 Apr 2013 23:04:57 +0000 (-0700) Subject: rtnetlink-link: Make 'attrs' local variable non-static. X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~131 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=098d85b3e3b5a7c4e8b872bf3f9ff05058b84c68;p=sliver-openvswitch.git rtnetlink-link: Make 'attrs' local variable non-static. I don't see any reason for this variable to be static. CC: Ethan Jackson Signed-off-by: Ben Pfaff --- diff --git a/lib/rtnetlink-link.c b/lib/rtnetlink-link.c index 0b3710fb2..459e48559 100644 --- a/lib/rtnetlink-link.c +++ b/lib/rtnetlink-link.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira, Inc. + * Copyright (c) 2009, 2010, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ rtnetlink_link_parse(struct ofpbuf *buf, [IFLA_ADDRESS] = { .type = NL_A_UNSPEC, .optional = true }, }; - static struct nlattr *attrs[ARRAY_SIZE(policy)]; + struct nlattr *attrs[ARRAY_SIZE(policy)]; parsed = nl_policy_parse(buf, NLMSG_HDRLEN + sizeof(struct ifinfomsg), policy, attrs, ARRAY_SIZE(policy));