FreeCalypso > hg > fc-pcsc-tools
changeset 86:bd19dc7591ec
simtool/restorebin.c: make write functions global
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 17 Feb 2021 06:39:20 +0000 |
parents | 51167ee0151b |
children | bc862d41f96b |
files | simtool/restorebin.c |
diffstat | 1 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/simtool/restorebin.c Wed Feb 17 06:35:55 2021 +0000 +++ b/simtool/restorebin.c Wed Feb 17 06:39:20 2021 +0000 @@ -13,8 +13,7 @@ #include <unistd.h> #include "curfile.h" -static -restore_transparent(data) +restore_bin_transparent(data) u_char *data; { unsigned off, cc; @@ -31,8 +30,7 @@ return(0); } -static -restore_records(data) +restore_bin_records(data) u_char *data; { unsigned recno; @@ -49,8 +47,7 @@ return(0); } -static -restore_cyclic(data) +restore_bin_cyclic(data) u_char *data; { unsigned count; @@ -123,15 +120,15 @@ switch (curfile_structure) { case 0x00: /* transparent */ - rc = restore_transparent(databuf); + rc = restore_bin_transparent(databuf); break; case 0x01: /* record-based */ - rc = restore_records(databuf); + rc = restore_bin_records(databuf); break; case 0x03: /* cyclic */ - rc = restore_cyclic(databuf); + rc = restore_bin_cyclic(databuf); break; } free(databuf);