git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba8de5c
)
vswitchd: Remove non-used function to prevent compiler warnings
author
Justin Pettit
<jpettit@nicira.com>
Wed, 8 Jul 2009 21:51:47 +0000
(14:51 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Wed, 29 Jul 2009 23:37:05 +0000
(16:37 -0700)
The function send_ofmp_error_msg() is not currently used, so it was
producing compiler warnings that it was defined. Remove the function
until it's needed.
vswitchd/mgmt.c
patch
|
blob
|
history
diff --git
a/vswitchd/mgmt.c
b/vswitchd/mgmt.c
index
45c3580
..
e2cc4f1
100644
(file)
--- a/
vswitchd/mgmt.c
+++ b/
vswitchd/mgmt.c
@@
-526,20
+526,6
@@
send_config_update_ack(uint32_t xid, bool success)
send_openflow_buffer(buffer);
}
send_openflow_buffer(buffer);
}
-static void
-send_ofmp_error_msg(uint32_t xid, uint16_t type, uint16_t code,
- const void *data, size_t len)
-{
- struct ofpbuf *buffer;
- struct ofmp_error_msg *oem;
-
- oem = make_ofmp_xid(sizeof(*oem)+len, OFMPT_ERROR, xid, &buffer);
- oem->type = htons(type);
- oem->code = htons(code);
- memcpy(oem->data, data, len);
- send_openflow_buffer(buffer);
-}
-
static void
send_error_msg(uint32_t xid, uint16_t type, uint16_t code,
const void *data, size_t len)
static void
send_error_msg(uint32_t xid, uint16_t type, uint16_t code,
const void *data, size_t len)