diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-11-23 20:56:35 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-11-23 20:56:35 -0800 |
commit | 48fbe321170f30de3e0c2aed5927aff9b0893a66 (patch) | |
tree | ca007998219e42ea1660767ff19ebd7c57d9adbb /pcap_lookupdev.3pcap | |
parent | b262e73dfdda6599b3b08750fcd6ff2a6a5a16c0 (diff) |
Style cleanup.
Use the BSD house style, in which, in
foobar() returns 17 on success and 137 on failure.
"foobar" is boldfaced but "()" isn't.
Diffstat (limited to 'pcap_lookupdev.3pcap')
-rw-r--r-- | pcap_lookupdev.3pcap | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap_lookupdev.3pcap b/pcap_lookupdev.3pcap index 0c0d9a8d..a3807de6 100644 --- a/pcap_lookupdev.3pcap +++ b/pcap_lookupdev.3pcap @@ -39,12 +39,12 @@ char errbuf[PCAP_ERRBUF_SIZE]; .B This interface is obsoleted by .BR pcap_findalldevs (3PCAP). To find a default device on which to capture, call -.B pcap_findalldevs() +.BR pcap_findalldevs () and, if the list it returns is not empty, use the first device in the list. (If the list is empty, there are no devices on which capture is possible.) .LP -.B pcap_lookupdev() +.BR pcap_lookupdev () returns a pointer to a string giving the name of a network device suitable for use with .BR pcap_create (3PCAP) @@ -67,11 +67,11 @@ chars. .BR pcap (3PCAP) .SH BUGS The pointer returned by -.B pcap_lookupdev() +.BR pcap_lookupdev () points to a static buffer; subsequent calls to -.B pcap_lookupdev() +.BR pcap_lookupdev () in the same thread, or calls to -.B pcap_lookupdev() +.BR pcap_lookupdev () in another thread, may overwrite that buffer. .LP In WinPcap, this function may return a UTF-16 string rather than an |