Commit 64728c36 authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

NMps backup, 64-bit fix for file position

parent 241bb8ba
...@@ -1184,7 +1184,7 @@ static pwr_tStatus nmpsbck_write(bck_ctx bckctx) ...@@ -1184,7 +1184,7 @@ static pwr_tStatus nmpsbck_write(bck_ctx bckctx)
pwr_tStatus sts; pwr_tStatus sts;
nmpsbck_t_recordheader recordheader; nmpsbck_t_recordheader recordheader;
pwr_tUInt32 csts; pwr_tUInt32 csts;
pwr_tUInt32 actpos; long int actpos;
FILE* bckfile; FILE* bckfile;
if (!bckctx->bckconfig->BackupOn) if (!bckctx->bckconfig->BackupOn)
...@@ -1320,7 +1320,7 @@ static pwr_tStatus nmpsbck_check_file(bck_ctx bckctx, FILE* bckfile, ...@@ -1320,7 +1320,7 @@ static pwr_tStatus nmpsbck_check_file(bck_ctx bckctx, FILE* bckfile,
nmpsbck_t_cellheader cellheader; nmpsbck_t_cellheader cellheader;
nmpsbck_t_dataheader dataheader; nmpsbck_t_dataheader dataheader;
pwr_tUInt32 csts; pwr_tUInt32 csts;
pwr_tUInt32 actpos; long int actpos;
int cell_read_success; int cell_read_success;
int data_read_success; int data_read_success;
...@@ -1460,7 +1460,7 @@ static pwr_tStatus nmpsbck_read(bck_ctx bckctx, char* backupfile) ...@@ -1460,7 +1460,7 @@ static pwr_tStatus nmpsbck_read(bck_ctx bckctx, char* backupfile)
FILE* bckfile1; FILE* bckfile1;
FILE* bckfile2; FILE* bckfile2;
pwr_tUInt32 csts; pwr_tUInt32 csts;
pwr_tUInt32 actpos; long int actpos;
int k; int k;
char* databuff = 0; char* databuff = 0;
int databuff_size = 0; int databuff_size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment