projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
559eb23
)
netdev: Make 'smap' variable const in netdev_set_qos().
author
Ben Pfaff
<blp@nicira.com>
Fri, 26 Apr 2013 18:13:04 +0000
(11:13 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 3 May 2013 20:29:47 +0000
(13:29 -0700)
This makes this code more obviously thread-safe.
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev.c
patch
|
blob
|
history
diff --git
a/lib/netdev.c
b/lib/netdev.c
index
156984a
..
434e257
100644
(file)
--- a/
lib/netdev.c
+++ b/
lib/netdev.c
@@
-1115,7
+1115,7
@@
netdev_set_qos(struct netdev *netdev,
if (class->set_qos) {
if (!details) {
- static struct smap empty = SMAP_INITIALIZER(&empty);
+ static
const
struct smap empty = SMAP_INITIALIZER(&empty);
details = ∅
}
return class->set_qos(netdev, type, details);