Fixed some compiler warnings

FossilOrigin-Name: 0264b0f96f1a8ec7ee01b15de7ef208802cca95d35f1f2ba6ab380b82667b4d5
This commit is contained in:
7u83@mail.ru
2018-03-11 10:29:00 +00:00
parent 9d28e72a6b
commit 27869b8c11
25 changed files with 50 additions and 122 deletions

View File

@ -95,7 +95,7 @@ static struct cw_ElemHandler handlers[] = {
0,0, /* Vendor / Proto */
0,0, /* min/max length */
NULL, /* type */
NULL, /* Key */
"mtu_discovery_padding", /* Key */
capwap_in_mtu_discovery_padding /* get */
}
,

View File

@ -106,7 +106,7 @@ static int init()
}
uint8_t * str;
/*
str = bstr_create_from_cfgstr(hardware_version);
mbag_set_bstrv(cisco_config, CW_ITEM_AC_HARDWARE_VERSION,
CW_VENDOR_ID_CISCO,
@ -122,6 +122,7 @@ static int init()
);
free(str);
}
*/
errX:
if (hardware_version)
free (hardware_version);