print error to stderr not stdout

This commit is contained in:
j 2013-04-22 09:36:45 +02:00
parent f03fbb9f9b
commit d45b2f48c3

View file

@ -111,7 +111,7 @@ int print_oshash(FILE *output, char const *filename) {
fprintf(output, "%s %s\n", hash, filename); fprintf(output, "%s %s\n", hash, filename);
return 0; return 0;
} else { } else {
fprintf(output,"%s: No such file or permission denied\n",filename); fprintf(stderr,"%s: No such file or permission denied\n",filename);
return 1; return 1;
} }
} }