diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2023-03-11 12:34:09 +0000 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2023-03-11 12:34:09 +0000 |
commit | 023844895059279ad51b0b24cc1de5c121d1833e (patch) | |
tree | 7bea54c46f566f725928f94c900fb48fb1ea143d | |
parent | 90af881f5ca707dd3f26b2f39e3c5b2330f4efe0 (diff) | |
download | libpcap-023844895059279ad51b0b24cc1de5c121d1833e.tar.gz |
man: Indent multiline prototypes consistently. [skip ci]
Use the same indentation everywhere as in pcap_open_offline(3PCAP), this
results in slightly better plain text output and notably better HTML
output.
-rw-r--r-- | pcap_compile.3pcap.in | 3 | ||||
-rw-r--r-- | pcap_dump.3pcap | 3 | ||||
-rw-r--r-- | pcap_lookupnet.3pcap | 3 | ||||
-rw-r--r-- | pcap_loop.3pcap | 12 | ||||
-rw-r--r-- | pcap_next_ex.3pcap | 3 | ||||
-rw-r--r-- | pcap_offline_filter.3pcap | 3 | ||||
-rw-r--r-- | pcap_open_live.3pcap | 3 |
7 files changed, 9 insertions, 21 deletions
diff --git a/pcap_compile.3pcap.in b/pcap_compile.3pcap.in index 67001fa4..12aa8fe6 100644 --- a/pcap_compile.3pcap.in +++ b/pcap_compile.3pcap.in @@ -28,8 +28,7 @@ pcap_compile \- compile a filter expression .LP .ft B int pcap_compile(pcap_t *p, struct bpf_program *fp, -.ti +8 -const char *str, int optimize, bpf_u_int32 netmask); + const char *str, int optimize, bpf_u_int32 netmask); .ft .fi .SH DESCRIPTION diff --git a/pcap_dump.3pcap b/pcap_dump.3pcap index ba7f75ad..e38c96ce 100644 --- a/pcap_dump.3pcap +++ b/pcap_dump.3pcap @@ -28,8 +28,7 @@ pcap_dump \- write a packet to a capture file .LP .ft B void pcap_dump(u_char *user, struct pcap_pkthdr *h, -.ti +8 -u_char *sp); + u_char *sp); .ft .fi .SH DESCRIPTION diff --git a/pcap_lookupnet.3pcap b/pcap_lookupnet.3pcap index 595c8827..2cf9a3da 100644 --- a/pcap_lookupnet.3pcap +++ b/pcap_lookupnet.3pcap @@ -33,8 +33,7 @@ char errbuf[PCAP_ERRBUF_SIZE]; .LP .ft B int pcap_lookupnet(const char *device, bpf_u_int32 *netp, -.ti +8 -bpf_u_int32 *maskp, char *errbuf); + bpf_u_int32 *maskp, char *errbuf); .ft .fi .SH DESCRIPTION diff --git a/pcap_loop.3pcap b/pcap_loop.3pcap index f8ca59b7..3f2fe312 100644 --- a/pcap_loop.3pcap +++ b/pcap_loop.3pcap @@ -28,17 +28,11 @@ pcap_loop, pcap_dispatch \- process packets from a live capture or savefile .LP .ft B typedef void (*pcap_handler)(u_char *user, const struct pcap_pkthdr *h, -.ti +8 - const u_char *bytes); -.ft -.LP -.ft B + const u_char *bytes); int pcap_loop(pcap_t *p, int cnt, -.ti +8 -pcap_handler callback, u_char *user); + pcap_handler callback, u_char *user); int pcap_dispatch(pcap_t *p, int cnt, -.ti +8 -pcap_handler callback, u_char *user); + pcap_handler callback, u_char *user); .ft .fi .SH DESCRIPTION diff --git a/pcap_next_ex.3pcap b/pcap_next_ex.3pcap index d07f55e3..c6143eed 100644 --- a/pcap_next_ex.3pcap +++ b/pcap_next_ex.3pcap @@ -28,8 +28,7 @@ pcap_next_ex, pcap_next \- read the next packet from a pcap_t .LP .ft B int pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, -.ti +8 -const u_char **pkt_data); + const u_char **pkt_data); const u_char *pcap_next(pcap_t *p, struct pcap_pkthdr *h); .ft .fi diff --git a/pcap_offline_filter.3pcap b/pcap_offline_filter.3pcap index dbb6e966..94b9a719 100644 --- a/pcap_offline_filter.3pcap +++ b/pcap_offline_filter.3pcap @@ -28,8 +28,7 @@ pcap_offline_filter \- check whether a filter matches a packet .LP .ft B int pcap_offline_filter(const struct bpf_program *fp, -.ti +8 -const struct pcap_pkthdr *h, const u_char *pkt) + const struct pcap_pkthdr *h, const u_char *pkt); .ft .fi .SH DESCRIPTION diff --git a/pcap_open_live.3pcap b/pcap_open_live.3pcap index 44a7172c..9ddf752a 100644 --- a/pcap_open_live.3pcap +++ b/pcap_open_live.3pcap @@ -33,8 +33,7 @@ char errbuf[PCAP_ERRBUF_SIZE]; .LP .ft B pcap_t *pcap_open_live(const char *device, int snaplen, -.ti +8 -int promisc, int to_ms, char *errbuf); + int promisc, int to_ms, char *errbuf); .ft .fi .SH DESCRIPTION |