]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fixup a couple man pages. [skip ci]
authorDenis Ovsienko <[email protected]>
Wed, 4 May 2022 21:59:40 +0000 (22:59 +0100)
committerGuy Harris <[email protected]>
Sat, 4 Jun 2022 01:12:57 +0000 (18:12 -0700)
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)

pcap_datalink_val_to_name.3pcap
pcap_init.3pcap

index bbfa3f80c7e76d39cd1eaf6d29777d6919f42e28..41790950af317fd39a25532a3ce428f6aa6f60da 100644 (file)
@@ -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
index 543f08331dc5bdda7c0403bedf52dd4fca90dcad..a807d0ecd86cb52835b6daece3f8e6db54eb75f1 100644 (file)
@@ -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