aboutsummaryrefslogtreecommitdiffstats
path: root/fad-win32.c
diff options
context:
space:
mode:
authorguy <guy>2005-01-29 00:52:22 +0000
committerguy <guy>2005-01-29 00:52:22 +0000
commit2c2964501569c0a1480f45c3b3906648ada72531 (patch)
treee6e4b9a60ae8fdc850332475b0a5ace83fd987bb /fad-win32.c
parent07ea050fd60a9695203e35c887634a4fe20c55a9 (diff)
Clean up indentation.
Get rid of some unnecessary casts.
Diffstat (limited to 'fad-win32.c')
-rw-r--r--fad-win32.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/fad-win32.c b/fad-win32.c
index 788fac0..a02b57c 100644
--- a/fad-win32.c
+++ b/fad-win32.c
@@ -32,7 +32,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.10 2004-04-30 09:12:42 risso Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.11 2005-01-29 00:52:22 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -155,8 +155,7 @@ pcap_add_if_win32(pcap_if_t **devlist, char *name, const char *desc,
/*
* Add an entry for this interface, with no addresses.
*/
- if (add_or_find_if(&curdev, devlist, (char *)name, 0, (char *)desc,
- errbuf) == -1) {
+ if (add_or_find_if(&curdev, devlist, name, 0, desc, errbuf) == -1) {
/*
* Failure.
*/
@@ -277,14 +276,13 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
*/
name = &AdaptersName[0];
while (*name != '\0') {
- /*
- * Add an entry for this interface.
- */
- if (pcap_add_if_win32(&devlist, name, desc,
- errbuf) == -1) {
+ /*
+ * Add an entry for this interface.
+ */
+ if (pcap_add_if_win32(&devlist, name, desc, errbuf) == -1) {
/*
- * Failure.
- */
+ * Failure.
+ */
ret = -1;
break;
}
@@ -293,10 +291,10 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
}
if (ret == -1) {
- /*
- * We had an error; free the list we've been constructing.
- */
- if (devlist != NULL) {
+ /*
+ * We had an error; free the list we've been constructing.
+ */
+ if (devlist != NULL) {
pcap_freealldevs(devlist);
devlist = NULL;
}