# HG changeset patch # User Mychaela Falconia # Date 1549864245 0 # Node ID 5bcf12be083425e70783c13ea24d1fb90f528451 # Parent 003e48f8ebe16dd4660ac58c7470d7ad87357de9 ffstools/caltools: null pointer passing fixes diff -r 003e48f8ebe1 -r 5bcf12be0834 ffstools/caltools/fc-cal2bin.c --- 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) { diff -r 003e48f8ebe1 -r 5bcf12be0834 ffstools/caltools/fc-rftab2c.c --- 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))