Skip to content

Commit 4df17c7

Browse files
committed
packet03: fix a build warning
Fix the following build warning: xdp_prog_user.c: In function ‘parse_mac’: xdp_prog_user.c:57:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
1 parent fe362cb commit 4df17c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packet03-redirecting/xdp_prog_user.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ static int parse_mac(char *str, unsigned char mac[ETH_ALEN])
5454
{
5555
/* Assignment 3: parse a MAC address in this function and place the
5656
* result in the mac array */
57+
58+
return 0;
5759
}
5860

5961
static int write_iface_params(int map_fd, unsigned char *src, unsigned char *dest)

0 commit comments

Comments
 (0)