]> git.deb.at Git - pkg/abook.git/commitdiff
print some error messages to sterr instead of stdout
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 12 Nov 2001 18:37:46 +0000 (18:37 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 12 Nov 2001 18:37:46 +0000 (18:37 +0000)
abook.c
configure.in

diff --git a/abook.c b/abook.c
index 74ade409606f089acae4cf9d0299f16fb08d6b66..be5be2a77159382197f880834cdde223be083652 100644 (file)
--- 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;
                }
index c59165f50cf4566138483cdef909e8e19385293f..1dc0c3018c42f0e907a6ebec294926ebcc3eea32 100644 (file)
@@ -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