aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2022-05-04 22:59:40 +0100
committerDenis Ovsienko <denis@ovsienko.info>2022-05-04 22:59:40 +0100
commit1a184e105125fd6f01d3fe86239a26afe270cd83 (patch)
tree6711761758f4451b514325b842e1d92ea17f74b1
parent17a48ca162de1a6d40a3b767eb318c2899666eb4 (diff)
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.
-rw-r--r--pcap_datalink_val_to_name.3pcap4
-rw-r--r--pcap_init.3pcap8
2 files changed, 6 insertions, 6 deletions
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