From 0e16e0a1ddeca038bb00b1dd6f1fb799a47e4b7f Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Mon, 30 Jun 2014 11:54:25 -0400 Subject: Removed use of err() for Windows compatibility. --- dev/filerelaytest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/filerelaytest.c') diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c index 2afa6b6..f045620 100644 --- a/dev/filerelaytest.c +++ b/dev/filerelaytest.c @@ -18,9 +18,10 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include #include #include +#include #include #include #include @@ -102,7 +103,8 @@ int main(int argc, char **argv) char buf[4096]; FILE *f = fopen("dump.cpio.gz", "wb"); if (!f) { - err(EXIT_FAILURE, "dump.cpio.gz"); + fprintf(stderr, "dump.cpio.gz: %s\n", strerror(errno)); + return EXIT_FAILURE; } setbuf(stdout, NULL); printf("receiving "); -- cgit v1.1-32-gdbae