From 5a4baac6c28485838ca4059f6fda33b23e62f267 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Wed, 8 Jul 2009 14:51:47 -0700 Subject: [PATCH] vswitchd: Remove non-used function to prevent compiler warnings 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 | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/vswitchd/mgmt.c b/vswitchd/mgmt.c index 45c358024..e2cc4f1f8 100644 --- 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); } -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) -- 2.43.0