@@ -16,7 +16,7 @@ BPF_OBJS=sockbpf.o
$(BPF): $(BPF_OBJS)
$(CC) -o ${.TARGET} ${.ALLSRC} $(LDFLAGS)
-%o:
+%o:
$(CC) -o ${.TARGET} -c ${.IMPSRC}
clean:
@@ -81,7 +81,7 @@ static int get_first_bpf(void)
* @nb: packets number
*
*/
-static void sender(struct ifreq *ifr, size_t nb)
+static void sender(const struct ifreq *ifr, size_t nb)
{
static unsigned char dummy;
size_t total = nb + 1;