Skip to content

Commit b509cd5

Browse files
committed
Merge pull request #29 from leobago/declare
Don't use undeclared function & correct use. Thanks for the pull request. This solves issue #28
2 parents 3022580 + 8562f16 commit b509cd5

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

include/fti.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,39 @@ int FTI_Recover();
304304
int FTI_Snapshot();
305305
int FTI_Finalize();
306306

307+
308+
/*---------------------------------------------------------------------------
309+
FTI private functions
310+
---------------------------------------------------------------------------*/
311+
312+
313+
void FTI_Print(char *msg, int priority);
314+
int FTI_Try(int result, char* message);
315+
int FTI_CheckErasures(unsigned long *fs, unsigned long *maxFs, int group, int *erased, int level);
316+
int FTI_Clean(int level, int group, int rank);
317+
int FTI_Local(int group);
318+
int FTI_Ptner(int group);
319+
int FTI_RSenc(int group);
320+
int FTI_Flush(int group, int level);
321+
int FTI_RecoverL1(int group);
322+
int FTI_RecoverL2(int group);
323+
int FTI_RecoverL3(int group);
324+
int FTI_RecoverL4(int group);
325+
int FTI_GetMeta(unsigned long *fs, unsigned long *mfs, int group, int level);
326+
int FTI_CreateMetadata(int globalTmp);
327+
int FTI_RmDir(char path[FTI_BUFS], int flag);
328+
int FTI_UpdateIterTime();
329+
int FTI_PostCkpt(int group, int fo, int pr);
330+
int FTI_WriteCkpt(FTIT_dataset* FTI_Data);
331+
int FTI_Listen();
332+
int FTI_RecoverFiles();
333+
int FTI_UpdateConf(int restart);
334+
int FTI_InitBasicTypes(FTIT_dataset FTI_Data[FTI_BUFS]);
335+
int FTI_Topology();
336+
int FTI_LoadConf(FTIT_injection *FTI_Inje);
337+
338+
339+
307340
#ifdef __cplusplus
308341
}
309342
#endif

src/postreco.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int FTI_RecoverL3(int group) {
241241
if (l > 0) {
242242
sprintf(str, "There are %d encoded/checkpoint files missing in this group.", l); FTI_Print(str, FTI_DBUG);
243243
if (FTI_Decode(fs, maxFs, erased) == FTI_NSCS)
244-
{ FTI_Print("RS-decoding could not regenerate the missing data."); return FTI_NSCS; }
244+
{ FTI_Print("RS-decoding could not regenerate the missing data.", FTI_DBUG); return FTI_NSCS; }
245245
} // Reed-Solomon decoding
246246
return FTI_SCES;
247247
}

0 commit comments

Comments
 (0)