Skip to content

Commit

Permalink
cnet-protosw: conform cnet_protosw_find prototype with channel prototype
Browse files Browse the repository at this point in the history
Signed-off-by: Jalal Mostafa <[email protected]>
  • Loading branch information
jalalmostafa authored and KeithWiles committed Jul 11, 2024
1 parent 65c4c6f commit 5a810a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cnet/protosw/cnet_protosw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion lib/cnet/protosw/cnet_protosw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a810a3

Please sign in to comment.