]> The Tcpdump Group git mirrors - libpcap/commit
Put pcap_win32_err_to_str() into fmtutils.c, and use it for all Win32 errors.
authorGuy Harris <[email protected]>
Wed, 9 Jan 2019 04:40:50 +0000 (20:40 -0800)
committerGuy Harris <[email protected]>
Wed, 9 Jan 2019 04:40:50 +0000 (20:40 -0800)
commit0dd92d7d9944b158511e27795ff6952c17fd3497
treed809d390da3c8b8f0f899027685004d8ba6d97ed
parent9a397d9b5fffc17aadab655d5e868094a015749f
Put pcap_win32_err_to_str() into fmtutils.c, and use it for all Win32 errors.

We don't need N different places all doing their own calls to
FormatMessage(); centralize it in pcap_win32_err_to_str(), now in
fmtutils.c for use in rpcapd as well as libpcap.

Merge in some fixes from the code in sock_fmterror().
fmtutils.c
fmtutils.h
pcap-int.h
pcap.c
rpcapd/daemon.c
rpcapd/win32-svc.c
sockutils.c