misc: fix int/enum mismatch errors reported by gcc-14

Type: fix
Change-Id: I80e90cab8e2e9fef837779e36e0256baf791b801
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2024-04-24 11:21:05 +00:00
committed by Dave Wallace
parent 21c5ae36af
commit 804255c9f0
6 changed files with 12 additions and 9 deletions

View File

@ -371,8 +371,9 @@ send_one_worker_interrupt (vlib_main_t * vm, acl_main_t * am,
}
void
aclp_post_session_change_request (acl_main_t * am, u32 target_thread,
u32 target_session, u32 request_type)
aclp_post_session_change_request (acl_main_t *am, u32 target_thread,
u32 target_session,
acl_fa_sess_req_t request_type)
{
acl_fa_per_worker_data_t *pw_me =
&am->per_worker_data[os_get_thread_index ()];

View File

@ -198,7 +198,8 @@ u8 gid_address_len (gid_address_t * a);
void *gid_address_cast (gid_address_t * gid, gid_address_type_t type);
void gid_address_copy (gid_address_t * dst, gid_address_t * src);
u32 gid_address_parse (u8 * offset, gid_address_t * a);
void gid_address_ip_set (gid_address_t * dst, void *src, u8 version);
void gid_address_ip_set (gid_address_t *dst, void *src,
ip_address_family_t version);
#define gid_address_type(_a) (_a)->type
#define gid_address_ippref(_a) (_a)->ippref

View File

@ -205,9 +205,9 @@ ip_address_family_to_link_type (ip_address_family_t af)
return (VNET_LINK_IP4);
}
void
ip_address_set (ip_address_t * dst, const void *src, u8 version)
ip_address_set (ip_address_t *dst, const void *src,
ip_address_family_t version)
{
ip_addr_version (dst) = version;

View File

@ -201,7 +201,8 @@ ip_feature_enable_disable (ip_address_family_t af,
}
int
ip_flow_hash_set (ip_address_family_t af, u32 table_id, u32 flow_hash_config)
ip_flow_hash_set (ip_address_family_t af, u32 table_id,
flow_hash_config_t flow_hash_config)
{
fib_protocol_t fproto;
u32 fib_index;

View File

@ -342,7 +342,7 @@ session_error_t app_worker_start_listen (app_worker_t *app_wrk,
int app_worker_stop_listen (app_worker_t * app_wrk, app_listener_t * al);
int app_worker_init_accepted (session_t * s);
int app_worker_listened_notify (app_worker_t *app_wrk, session_handle_t alsh,
u32 opaque, int err);
u32 opaque, session_error_t err);
int app_worker_unlisten_reply (app_worker_t *app_wrk, session_handle_t sh,
u32 opaque, session_error_t err);
int app_worker_accept_notify (app_worker_t * app_wrk, session_t * s);

View File

@ -106,8 +106,8 @@ parse_uri (char *uri, session_endpoint_cfg_t *sep)
return 0;
}
int
vnet_bind_uri (vnet_listen_args_t * a)
session_error_t
vnet_bind_uri (vnet_listen_args_t *a)
{
session_endpoint_cfg_t sep = SESSION_ENDPOINT_CFG_NULL;
int rv;