Skip to content

Commit

Permalink
Remove compiler warning on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
droe committed Oct 4, 2018
1 parent d2eb73e commit 4486dc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ static int
log_content_mirror_preinit(const char *ifname, const char *target) {
char errbuf[LIBNET_ERRBUF_SIZE];

libnet_mirror = libnet_init(LIBNET_LINK, ifname, errbuf);
/* cast to char* needed on OpenBSD */
libnet_mirror = libnet_init(LIBNET_LINK, (char *)ifname, errbuf);
if (libnet_mirror == NULL) {
log_err_printf("Failed to init mirror libnet: %s\n", errbuf);
return -1;
Expand Down

0 comments on commit 4486dc5

Please sign in to comment.