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