FreeCalypso > hg > freecalypso-tools
changeset 466:5bcf12be0834
ffstools/caltools: null pointer passing fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Feb 2019 05:50:45 +0000 |
parents | 003e48f8ebe1 |
children | dc2fd8e6f42c |
files | ffstools/caltools/fc-cal2bin.c ffstools/caltools/fc-rftab2c.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ffstools/caltools/fc-cal2bin.c Mon Feb 11 00:00:19 2019 +0000 +++ b/ffstools/caltools/fc-cal2bin.c Mon Feb 11 05:50:45 2019 +0000 @@ -21,7 +21,7 @@ argv[0]); exit(1); } - if (read_rf_table_ext(argv[1], buf, 1, 0, &size)) + if (read_rf_table_ext(argv[1], buf, 1, (char **) 0, &size)) exit(1); ofd = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0666); if (ofd < 0) {
--- a/ffstools/caltools/fc-rftab2c.c Mon Feb 11 00:00:19 2019 +0000 +++ b/ffstools/caltools/fc-rftab2c.c Mon Feb 11 05:50:45 2019 +0000 @@ -208,7 +208,7 @@ argv[0]); exit(1); } - if (read_rf_table_ext(argv[1], binbuf, 1, &format, 0)) + if (read_rf_table_ext(argv[1], binbuf, 1, &format, (unsigned *) 0)) exit(1); for (map = map_table; map->format; map++) if (!strcmp(map->format, format))