From eb3fda68c7fd93d6d413fa38de1dfca7c80f2e7c Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 17 Nov 2007 20:00:42 +0000 Subject: [PATCH] Source reformatting only. --- cpu/native/net/wpcap.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cpu/native/net/wpcap.c b/cpu/native/net/wpcap.c index d1f3dee20..1b929f57b 100644 --- a/cpu/native/net/wpcap.c +++ b/cpu/native/net/wpcap.c @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * $Id: wpcap.c,v 1.9 2007/11/17 18:08:15 adamdunkels Exp $ + * $Id: wpcap.c,v 1.10 2007/11/17 20:00:42 oliverschmidt Exp $ */ #define WIN32_LEAN_AND_MEAN @@ -208,10 +208,14 @@ wpcap_init(void) log_message("wpcap_init: cmdline address: ", inet_ntoa(addr)); wpcap = LoadLibrary("wpcap.dll"); - pcap_findalldevs = (int (*)(struct pcap_if **, char *))GetProcAddress(wpcap, "pcap_findalldevs"); - pcap_open_live = (struct pcap *(*)(char *, int, int, int, char *))GetProcAddress(wpcap, "pcap_open_live"); - pcap_next_ex = (int (*)(struct pcap *, struct pcap_pkthdr **, unsigned char **))GetProcAddress(wpcap, "pcap_next_ex"); - pcap_sendpacket = (int (*)(struct pcap *, unsigned char *, int))GetProcAddress(wpcap, "pcap_sendpacket"); + pcap_findalldevs = (int (*)(struct pcap_if **, char *)) + GetProcAddress(wpcap, "pcap_findalldevs"); + pcap_open_live = (struct pcap *(*)(char *, int, int, int, char *)) + GetProcAddress(wpcap, "pcap_open_live"); + pcap_next_ex = (int (*)(struct pcap *, struct pcap_pkthdr **, unsigned char **)) + GetProcAddress(wpcap, "pcap_next_ex"); + pcap_sendpacket = (int (*)(struct pcap *, unsigned char *, int)) + GetProcAddress(wpcap, "pcap_sendpacket"); if(pcap_findalldevs == NULL || pcap_open_live == NULL || pcap_next_ex == NULL || pcap_sendpacket == NULL) {