From: Denis Ovsienko Date: Wed, 4 May 2022 21:59:40 +0000 (+0100) Subject: Fixup a couple man pages. [skip ci] X-Git-Tag: libpcap-1.10.2~154 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4c5c089345bd6976574b0e701d78be82114c0a6c Fixup a couple man pages. [skip ci] In pcap_init(3PCAP) tell PCAP_ERROR instead of -1 because the value is in fact an error code (see commit a973128 message for the rationale). Ibid. and in pcap_datalink_val_to_name(3PCAP) tell the correct libpcap release in the backward compatibility note. (cherry picked from commit 1a184e105125fd6f01d3fe86239a26afe270cd83) --- diff --git a/pcap_datalink_val_to_name.3pcap b/pcap_datalink_val_to_name.3pcap index bbfa3f80..41790950 100644 --- a/pcap_datalink_val_to_name.3pcap +++ b/pcap_datalink_val_to_name.3pcap @@ -17,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_DATALINK_VAL_TO_NAME 3PCAP "15 April 2019" +.TH PCAP_DATALINK_VAL_TO_NAME 3PCAP "4 May 2022" .SH NAME pcap_datalink_val_to_name, pcap_datalink_val_to_description, pcap_datalink_val_to_description_or_dlt \- get a @@ -66,7 +66,7 @@ the dlt argument. .SH BACKWARD COMPATIBILITY The .BR pcap_datalink_val_to_description_or_dlt () -function first became available in libpcap release 1.10.0. In previous +function first became available in libpcap release 1.9.1. In previous releases, .BR pcap_datalink_val_to_description () would have to be called and, if it returned diff --git a/pcap_init.3pcap b/pcap_init.3pcap index 543f0833..a807d0ec 100644 --- a/pcap_init.3pcap +++ b/pcap_init.3pcap @@ -17,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_INIT 3PCAP "11 April 2020" +.TH PCAP_INIT 3PCAP "4 May 2022" .SH NAME pcap_init \- initialize the library .SH SYNOPSIS @@ -80,10 +80,10 @@ will initialize Winsock itself on Windows. returns .B 0 on success and -.B \-1 +.B PCAP_ERROR on failure. If -.B \-1 +.B PCAP_ERROR is returned, .I errbuf is filled in with an appropriate error message. @@ -92,7 +92,7 @@ is assumed to be able to hold at least .B PCAP_ERRBUF_SIZE chars. .SH BACKWARD COMPATIBILITY -This function became available in libpcap release 1.10.0. In previous +This function became available in libpcap release 1.9.0. In previous releases, on Windows, all strings supplied as arguments, and all strings returned to the caller, are in the local character encoding. .SH SEE ALSO