From 80fb8e070065e171b716f8149d01b02d71f68827 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Mon, 12 Nov 2001 18:37:46 +0000 Subject: [PATCH] print some error messages to sterr instead of stdout --- abook.c | 13 ++++++++----- configure.in | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/abook.c b/abook.c index 74ade40..be5be2a 100644 --- a/abook.c +++ b/abook.c @@ -456,22 +456,25 @@ convert(char *srcformat, char *srcfile, char *dstformat, char *dstfile) switch( import(srcformat, srcfile) ) { case -1: - printf("input format %s not supported\n", srcformat); + fprintf(stderr, + "input format %s not supported\n", srcformat); ret = 1; case 1: - printf("cannot read file %s\n", srcfile); + fprintf(stderr, "cannot read file %s\n", srcfile); ret = 1; } if(!ret) switch( export(dstformat, dstfile) ) { case -1: - printf("output format %s not supported\n", - dstformat); + fprintf(stderr, + "output format %s not supported\n", + dstformat); ret = 1; break; case 1: - printf("cannot write file %s\n", dstfile); + fprintf(stderr, + "cannot write file %s\n", dstfile); ret = 1; break; } diff --git a/configure.in b/configure.in index c59165f..1dc0c30 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl abook configure.in AC_INIT(abook.c) -AM_INIT_AUTOMAKE(abook, 0.4.15) +AM_INIT_AUTOMAKE(abook, 0.4.16-cvs) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST -- 2.39.2