From: Guy Harris Date: Fri, 7 Feb 2014 00:06:10 +0000 (-0800) Subject: Remove commas from clauses in a comma-separated list. X-Git-Tag: libpcap-1.6.0-bp~53 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/e8fc111feda47afc82917491b7f2ee615ced3898 Remove commas from clauses in a comma-separated list. The list of return values is a comma-separated list; if the descriptions in that list themselves have commas, it can perhaps be confusing - does the list item end with the comma in the description or in the comma at the end of the description? (The correct answer is the latter.) --- diff --git a/pcap_next_ex.3pcap b/pcap_next_ex.3pcap index 02efe63c..5fa83b4b 100644 --- a/pcap_next_ex.3pcap +++ b/pcap_next_ex.3pcap @@ -113,9 +113,9 @@ for Ethernet. .SH RETURN VALUE .B pcap_next_ex() returns 1 if the packet was read without problems, 0 -if packets are being read from a live capture, and the timeout expired, +if packets are being read from a live capture and the timeout expired, \-1 if an error occurred while reading the packet, and \-2 if -packets are being read from a ``savefile'', and there are no more +packets are being read from a ``savefile'' and there are no more packets to read from the savefile. If \-1 is returned, .B pcap_geterr()