Permalink
Browse files

Minor tweak to the synopsis for "pcap_setnonblock()" to make it look

more like the other synopses, and note that it returns 0 on success.
  • Loading branch information...
1 parent 99f5637 commit 86c2a855bf7cea4a1d8db5da5761cc5885175973 @yuguy yuguy committed Dec 29, 2001
Showing with 4 additions and 3 deletions.
  1. +4 −3 pcap.3
View
7 pcap.3
@@ -1,4 +1,4 @@
-.\" @(#) $Header: /tcpdump/master/libpcap/Attic/pcap.3,v 1.30 2001-12-10 06:35:00 guy Exp $
+.\" @(#) $Header: /tcpdump/master/libpcap/Attic/pcap.3,v 1.31 2001-12-29 21:57:07 guy Exp $
.\"
.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
@@ -43,7 +43,7 @@ pcap_dumper_t *pcap_dump_open(pcap_t *p, char *fname)
.ft
.LP
.ft B
-int pcap_setnonblock(pcap_t *, int nonblock, char *errbuf);
+int pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf);
int pcap_getnonblock(pcap_t *p, char *errbuf);
.ft
.LP
@@ -217,7 +217,8 @@ depending on whether the
argument is non-zero or zero. It has no effect on ``savefiles''.
If there is an error, \-1 is returned and
.I errbuf
-is filled in with an appropriate error message.
+is filled in with an appropriate error message; otherwise, 0 is
+returned.
In
``non-blocking'' mode, an attempt to read from the capture descriptor
with

0 comments on commit 86c2a85

Please sign in to comment.