FreeCalypso > hg > freecalypso-tools
comparison ffstools/caltools/fc-cal2bin.c @ 466:5bcf12be0834
ffstools/caltools: null pointer passing fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Feb 2019 05:50:45 +0000 |
parents | 0af5009bd52f |
children |
comparison
equal
deleted
inserted
replaced
465:003e48f8ebe1 | 466:5bcf12be0834 |
---|---|
19 fprintf(stderr, | 19 fprintf(stderr, |
20 "usage: %s ascii-input-file binary-output-file\n", | 20 "usage: %s ascii-input-file binary-output-file\n", |
21 argv[0]); | 21 argv[0]); |
22 exit(1); | 22 exit(1); |
23 } | 23 } |
24 if (read_rf_table_ext(argv[1], buf, 1, 0, &size)) | 24 if (read_rf_table_ext(argv[1], buf, 1, (char **) 0, &size)) |
25 exit(1); | 25 exit(1); |
26 ofd = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0666); | 26 ofd = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0666); |
27 if (ofd < 0) { | 27 if (ofd < 0) { |
28 perror(argv[2]); | 28 perror(argv[2]); |
29 exit(1); | 29 exit(1); |