in pipe mode, make rrd_tool send errors to STDOUT (most of the time) -- tobi
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 13 Mar 2006 23:21:27 +0000 (23:21 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 13 Mar 2006 23:21:27 +0000 (23:21 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@774 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_tool.c

index 904bc5c..2334431 100644 (file)
@@ -363,7 +363,7 @@ int main(int argc, char *argv[])
 
            while (fgets(aLine, sizeof(aLine)-1, stdin)){
                if ((argc = CountArgs(aLine)) == 0)  {
-                   fprintf(stderr,"ERROR: not enough arguments\n");
+                   printf("ERROR: not enough arguments\n");
                }
                if ((myargv = (char **) malloc((argc+1) * 
                                               sizeof(char *))) == NULL)   {