aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-10-12 17:06:11 -0700
committerGuy Harris <guy@alum.mit.edu>2009-10-12 17:06:11 -0700
commit26384d5fc75257d06cdd4b0e59f824eb01b769ff (patch)
treecdaeef765774a89fcaea503985d4c377e5149138
parentbf7491046a6123f40be6993a24a61e9525a44666 (diff)
Fix typo^Wbraino.
-rw-r--r--pcap-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 48cad3a..9703040 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2982,7 +2982,7 @@ pcap_read_linux_mmap(pcap_t *handle, int max_packets, pcap_handler callback,
*
* XXX - make the socket non-blocking?
*/
- if (recv(handle->fd, c, sizeof c,
+ if (recv(handle->fd, &c, sizeof c,
MSG_PEEK) != -1)
continue; /* what, no error? */
if (errno == ENETDOWN) {