From 5a810a37d390d9ba11e13a21b6a179ee615f063b Mon Sep 17 00:00:00 2001 From: Jalal Mostafa Date: Thu, 11 Jul 2024 15:17:59 +0200 Subject: [PATCH] cnet-protosw: conform cnet_protosw_find prototype with channel prototype Signed-off-by: Jalal Mostafa --- lib/cnet/protosw/cnet_protosw.c | 2 +- lib/cnet/protosw/cnet_protosw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cnet/protosw/cnet_protosw.c b/lib/cnet/protosw/cnet_protosw.c index 10da9d0e..0a9f17bc 100644 --- a/lib/cnet/protosw/cnet_protosw.c +++ b/lib/cnet/protosw/cnet_protosw.c @@ -35,7 +35,7 @@ cnet_protosw_match(uint16_t domain, uint16_t type, uint16_t proto) } struct protosw_entry * -cnet_protosw_find(uint16_t domain, uint16_t type, uint16_t proto) +cnet_protosw_find(int domain, int type, int proto) { struct protosw_entry *p; diff --git a/lib/cnet/protosw/cnet_protosw.h b/lib/cnet/protosw/cnet_protosw.h index 6d0842dd..3217064e 100644 --- a/lib/cnet/protosw/cnet_protosw.h +++ b/lib/cnet/protosw/cnet_protosw.h @@ -96,7 +96,7 @@ CNDP_API struct protosw_entry *cnet_protosw_add(const char *name, uint16_t domai * @return * NULL on error or a pointer to a protocol switch entry. */ -CNDP_API struct protosw_entry *cnet_protosw_find(uint16_t domain, uint16_t type, uint16_t proto); +CNDP_API struct protosw_entry *cnet_protosw_find(int domain, int type, int proto); /** * @brief Dump out the list of protocol switch values.