Skip to content

Commit

Permalink
Merge pull request #29 from leobago/declare
Browse files Browse the repository at this point in the history
Don't use undeclared function & correct use. Thanks for the pull request. This solves issue #28
  • Loading branch information
leobago committed Jan 25, 2016
2 parents 3022580 + 8562f16 commit b509cd5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions include/fti.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,39 @@ int FTI_Recover();
int FTI_Snapshot();
int FTI_Finalize();


/*---------------------------------------------------------------------------
FTI private functions
---------------------------------------------------------------------------*/


void FTI_Print(char *msg, int priority);
int FTI_Try(int result, char* message);
int FTI_CheckErasures(unsigned long *fs, unsigned long *maxFs, int group, int *erased, int level);
int FTI_Clean(int level, int group, int rank);
int FTI_Local(int group);
int FTI_Ptner(int group);
int FTI_RSenc(int group);
int FTI_Flush(int group, int level);
int FTI_RecoverL1(int group);
int FTI_RecoverL2(int group);
int FTI_RecoverL3(int group);
int FTI_RecoverL4(int group);
int FTI_GetMeta(unsigned long *fs, unsigned long *mfs, int group, int level);
int FTI_CreateMetadata(int globalTmp);
int FTI_RmDir(char path[FTI_BUFS], int flag);
int FTI_UpdateIterTime();
int FTI_PostCkpt(int group, int fo, int pr);
int FTI_WriteCkpt(FTIT_dataset* FTI_Data);
int FTI_Listen();
int FTI_RecoverFiles();
int FTI_UpdateConf(int restart);
int FTI_InitBasicTypes(FTIT_dataset FTI_Data[FTI_BUFS]);
int FTI_Topology();
int FTI_LoadConf(FTIT_injection *FTI_Inje);



#ifdef __cplusplus
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/postreco.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ int FTI_RecoverL3(int group) {
if (l > 0) {
sprintf(str, "There are %d encoded/checkpoint files missing in this group.", l); FTI_Print(str, FTI_DBUG);
if (FTI_Decode(fs, maxFs, erased) == FTI_NSCS)
{ FTI_Print("RS-decoding could not regenerate the missing data."); return FTI_NSCS; }
{ FTI_Print("RS-decoding could not regenerate the missing data.", FTI_DBUG); return FTI_NSCS; }
} // Reed-Solomon decoding
return FTI_SCES;
}
Expand Down

0 comments on commit b509cd5

Please sign in to comment.