libpcap/libpcap-0.9.5-nonvoid.diff

35 lines
578 B
Diff

--- gencode.c
+++ gencode.c
@@ -5244,6 +5244,7 @@
bpf_error("invalid qualifier against IPv6 address");
/* NOTREACHED */
}
+ return NULL;
}
#endif /*INET6*/
@@ -5296,6 +5297,7 @@
}
bpf_error("ethernet address used in non-ether expression");
/* NOTREACHED */
+ return NULL;
}
void
@@ -5725,6 +5727,7 @@
}
bpf_error("too many registers needed to evaluate expression");
/* NOTREACHED */
+ return 0;
}
/*
@@ -6315,6 +6318,7 @@
}
bpf_error("ARCnet address used in non-arc expression");
/* NOTREACHED */
+ return NULL;
}
static struct block *