diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-06-29 19:30:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-06-29 19:30:05 -0700 |
commit | 81e850934fc00eb60c12b240fda57b7c05223cff (patch) | |
tree | 600f1099d3c3b58415cd455c5ab51569b35d23af /fmtutils.h | |
parent | 94dfe9f2fe7abcd306ec67b7c8a44cbc7e6b1f75 (diff) |
Have a pcap_fmt_errmsg_for_win32_err() routine and use it.
It's like pcap_fmt_errmsg_for_errno(), but for Windows error codes.
Use it, rather than calling pcap_win32_err_to_str() and then formatting
a message with pcap_strerror().
Clean up some error messages while we're at it.
Diffstat (limited to 'fmtutils.h')
-rw-r--r-- | fmtutils.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,7 +44,8 @@ void pcap_fmt_errmsg_for_errno(char *, size_t, int, PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5); #ifdef _WIN32 -void pcap_win32_err_to_str(DWORD, char *); +void pcap_fmt_errmsg_for_win32_err(char *, size_t, DWORD, + PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5); #endif #ifdef __cplusplus |