Mercurial > hg > dmlib
comparison xm2jss.c @ 84:35db15881923
Oops, another fix for dmf_create_stdio() changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2012 10:23:29 +0300 |
parents | c42ee907de9c |
children | 7108681151a4 |
comparison
equal
deleted
inserted
replaced
83:6b42aed2745b | 84:35db15881923 |
---|---|
900 | 900 |
901 // Read the source file | 901 // Read the source file |
902 if (srcFilename == NULL) | 902 if (srcFilename == NULL) |
903 sfile = dmf_create_stdio_stream(stdin); | 903 sfile = dmf_create_stdio_stream(stdin); |
904 else | 904 else |
905 if ((sfile = dmf_create_stdio(srcFilename)) == NULL) | 905 if ((sfile = dmf_create_stdio(srcFilename, "rb")) == NULL) |
906 { | 906 { |
907 dmError("Error opening input file '%s'. (%s)\n", | 907 dmError("Error opening input file '%s', %d: %s\n", |
908 srcFilename, strerror(errno)); | 908 srcFilename, errno, strerror(errno)); |
909 return 1; | 909 return 1; |
910 } | 910 } |
911 | 911 |
912 // Initialize miniJSS | 912 // Initialize miniJSS |
913 jssInit(); | 913 jssInit(); |