Code

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@774 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_tool.c

index 904bc5cb665fd764cbc0a6f74a442f85cd0ecb91..23344312868e6810c08047b2774f5ecde562c3b9 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)   {