]> The Tcpdump Group git mirrors - libpcap/commit
Clean up pcap_do_addexit() and calls to it.
authorGuy Harris <[email protected]>
Mon, 22 Feb 2016 20:24:24 +0000 (12:24 -0800)
committerGuy Harris <[email protected]>
Mon, 22 Feb 2016 20:24:24 +0000 (12:24 -0800)
commit27593e4b8d1debe7046a383fa3e43fd35fa27119
tree3aa5cf5456a88e3865af629124bf1f564c7492e0
parent32d01a544d12ae31a093719796c62630db3ad291
Clean up pcap_do_addexit() and calls to it.

atexit() is only specified in standards as returning "a non-zero value"
on error; don't assume it returns -1, even if it's documented as doing
so on some platforms.

pcap_do_addexit() already fills in p->errbuf; don't do so in its callers.
pcap-bpf.c
pcap-linux.c
pcap.c