From: Jaakko Heinonen Date: Mon, 12 Nov 2001 18:37:46 +0000 (+0000) Subject: print some error messages to sterr instead of stdout X-Git-Tag: upstream/0.6.1~2^2~321 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;ds=inline;h=80fb8e070065e171b716f8149d01b02d71f68827;hp=b72252752db9cad76ab15da63296c2694074d831;p=pkg%2Fabook.git print some error messages to sterr instead of stdout --- 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