aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 0d3ba2ab..928c08c5 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -3451,9 +3451,9 @@ set_dlt_list_cooked(pcap_t *handle, int sock_fd)
len = sizeof(tp_reserve);
if (getsockopt(sock_fd, SOL_PACKET, PACKET_RESERVE, &tp_reserve,
&len) == 0) {
- /*
- * Yes, we can do DLL_LINUX_SLL2.
- */
+ /*
+ * Yes, we can do DLL_LINUX_SLL2.
+ */
handle->dlt_list = (u_int *) malloc(sizeof(u_int) * 2);
/*
* If that fails, just leave the list empty.
@@ -3661,7 +3661,7 @@ activate_sock(pcap_t *handle, int is_any_device)
if ((err = iface_bind(sock_fd, handlep->ifindex,
handle->errbuf, pcap_protocol(handle))) != 0) {
- close(sock_fd);
+ close(sock_fd);
return err;
}
} else {