Moreover:
Replace strerror() calls with pcap_strerror() calls, in case some platform
lacks strerror().
ret = vfprintf(stdout, fmt, args);
va_end(args);
+ if (ret < 0)
+ ndo_error(ndo, "Unable to write output: %s", pcap_strerror(errno));
return (ret);
}
VFile = fopen(VFileName, "r");
if (VFile == NULL)
- error("Unable to open file: %s\n", strerror(errno));
+ error("Unable to open file: %s\n", pcap_strerror(errno));
ret = get_next_file(VFile, VFileLine);
if (!ret)
"compress_savefile:execlp(%s, %s): %s\n",
zflag,
filename,
- strerror(errno));
+ pcap_strerror(errno));
# ifdef HAVE_FORK
exit(1);
# else