--- src/mainAction.cpp 2017-02-05 23:45:42.131598000 +0100 +++ src/mainAction.cpp 2017-02-05 23:46:13.857612000 +0100 @@ -181,7 +181,7 @@ // strcpy(p, optarg); pipeLeafs = popen(optarg, "w"); setlinebuf(pipeLeafs); - if (pipeLeafs < 0) + if (pipeLeafs == NULL) warn("coudn't open pipe to: %s\n", optarg); else if (outputLeafs) { @@ -194,7 +194,7 @@ fclose(outputLeafs); outputLeafs = fopen(optarg, "w"); setlinebuf(outputLeafs); - if (outputLeafs < 0) + if (outputLeafs == NULL) warn("open file: %s\n", optarg); else if (pipeLeafs) {