David Marec hai 8 meses
pai
achega
53151c9a79
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      sockraw/Makefile
  2. 1 1
      sockraw/sockbpf.c

+ 1 - 1
sockraw/Makefile

@@ -16,7 +16,7 @@ BPF_OBJS=sockbpf.o
 $(BPF): $(BPF_OBJS)
 	$(CC) -o ${.TARGET} ${.ALLSRC} $(LDFLAGS)
 
-%o: 
+%o:
 	$(CC) -o ${.TARGET} -c ${.IMPSRC}
 
 clean:

+ 1 - 1
sockraw/sockbpf.c

@@ -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;