aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/README.Win32.md6
-rw-r--r--pcap-bpf.c4
-rw-r--r--pcap.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/README.Win32.md b/doc/README.Win32.md
index 55db3ead..626f89ba 100644
--- a/doc/README.Win32.md
+++ b/doc/README.Win32.md
@@ -2,7 +2,7 @@ Building libpcap on Windows with Visual Studio
==============================================
Unlike the UN*Xes on which libpcap can capture network traffic, Windows
-has no network traffic capture mechanism that libpcap can use.
+has no network traffic capture mechanism that libpcap can use.
Therefore, libpcap requires a driver, and a library to access the
driver, provided by the Npcap or WinPcap projects.
@@ -129,7 +129,7 @@ Building from the Visual Studio GUI
### Visual Studio 2017 ###
-Open the folder containing the libpcap source with Open > Folder.
+Open the folder containing the libpcap source with Open > Folder.
Visual Studio will run CMake; however, you will need to indicate where
the Npcap or WinPcap SDK is installed.
@@ -154,7 +154,7 @@ you can build with CMake > "Build All".
### Visual Studio 2019 ###
-Open the folder containing the libpcap source with Open > Folder.
+Open the folder containing the libpcap source with Open > Folder.
Visual Studio will run CMake; however, you will need to indicate where
the Npcap or WinPcap SDK is installed.
diff --git a/pcap-bpf.c b/pcap-bpf.c
index 0d8f2d6e..3374de42 100644
--- a/pcap-bpf.c
+++ b/pcap-bpf.c
@@ -3296,7 +3296,7 @@ pcap_setdirection_bpf(pcap_t *p, pcap_direction_t d)
direction_name = "\"incoming and outgoing\"";
break;
}
-
+
if (ioctl(p->fd, BIOCSDIRECTION, &direction) == -1) {
pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
errno, "Cannot set direction to %s", direction_name);
@@ -3399,7 +3399,7 @@ pcap_setdirection_bpf(pcap_t *p, pcap_direction_t d)
direction_name = "\"incoming and outgoing\"";
break;
}
-
+
if (ioctl(p->fd, BIOCSSEESENT, &seesent) == -1) {
pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
errno, "Cannot set direction to %s", direction_name);
diff --git a/pcap.c b/pcap.c
index 633b3dd3..6b2f2e69 100644
--- a/pcap.c
+++ b/pcap.c
@@ -3553,7 +3553,7 @@ pcap_setdirection(pcap_t *p, pcap_direction_t d)
"Invalid direction");
return (-1);
}
- }
+ }
}
int