diff --git a/include/sj4common/sj4compat.h b/include/sj4common/sj4compat.h index a078b6e..aef370a 100644 --- a/include/sj4common/sj4compat.h +++ b/include/sj4common/sj4compat.h @@ -14,6 +14,5 @@ int sj4_snprintf(char*, size_t, const char*, ...); size_t sj4_strlcpy(char*, const char*, size_t); int sj4_ftruncate(FILE*, size_t); -int sj4_unlink(const char*); #endif diff --git a/lib/sj4common/unlink.c b/lib/sj4common/unlink.c deleted file mode 100644 index c589012..0000000 --- a/lib/sj4common/unlink.c +++ /dev/null @@ -1,5 +0,0 @@ -#include "sj4compat.h" - -int sj4_unlink(const char* path) { - return unlink(path); -} diff --git a/lib/sj4core/sdepend.c b/lib/sj4core/sdepend.c index 63a2bc6..a8689c0 100644 --- a/lib/sj4core/sdepend.c +++ b/lib/sj4core/sdepend.c @@ -607,7 +607,7 @@ int makedict(char* path, int idxlen, int seglen, int segnum) { ret = SJ4_NormalEnd; error: fclose(fp); - if(ret != SJ4_NormalEnd) sj4_unlink(path); + if(ret != SJ4_NormalEnd) remove(path); return ret; } @@ -687,7 +687,7 @@ int makestdy(char* path, int stynum, int clstep, int cllen) { ret = SJ4_NormalEnd; error: fclose(fp); - if(ret != SJ4_NormalEnd) sj4_unlink(path); + if(ret != SJ4_NormalEnd) remove(path); return ret; }