summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/tpax_file_create_memory_snapshot.c4
-rw-r--r--src/logic/tpax_file_create_tmpfs_snapshot.c4
-rw-r--r--src/util/tpax_path_copy.c (renamed from src/helper/tpax_path_copy.c)2
-rw-r--r--src/util/tpax_stat_compare.c (renamed from src/helper/tpax_stat_compare.c)2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/logic/tpax_file_create_memory_snapshot.c b/src/logic/tpax_file_create_memory_snapshot.c
index 0cd0f0c..504a4a1 100644
--- a/src/logic/tpax_file_create_memory_snapshot.c
+++ b/src/logic/tpax_file_create_memory_snapshot.c
@@ -53,7 +53,7 @@ int tpax_file_create_memory_snapshot(
close(fd);
return TPAX_SYSTEM_ERROR(dctx);
- } else if (tpax_stat_compare(srcst,&dstst)) {
+ } else if (tpax_util_stat_compare(srcst,&dstst)) {
close(fd);
return TPAX_CUSTOM_ERROR(dctx,TPAX_ERR_FILE_CHANGED);
}
@@ -86,7 +86,7 @@ int tpax_file_create_memory_snapshot(
close(fd);
return TPAX_SYSTEM_ERROR(dctx);
- } else if (tpax_stat_compare(srcst,&dstst)) {
+ } else if (tpax_util_stat_compare(srcst,&dstst)) {
close(fd);
return TPAX_CUSTOM_ERROR(dctx,TPAX_ERR_FILE_CHANGED);
}
diff --git a/src/logic/tpax_file_create_tmpfs_snapshot.c b/src/logic/tpax_file_create_tmpfs_snapshot.c
index 5939ff4..2e92211 100644
--- a/src/logic/tpax_file_create_tmpfs_snapshot.c
+++ b/src/logic/tpax_file_create_tmpfs_snapshot.c
@@ -64,7 +64,7 @@ int tpax_file_create_tmpfs_snapshot(
close(fdtmp);
return TPAX_SYSTEM_ERROR(dctx);
- } else if (tpax_stat_compare(srcst,&dstst)) {
+ } else if (tpax_util_stat_compare(srcst,&dstst)) {
close(fdsrc);
close(fdtmp);
return TPAX_CUSTOM_ERROR(dctx,TPAX_ERR_FILE_CHANGED);
@@ -114,7 +114,7 @@ int tpax_file_create_tmpfs_snapshot(
close(fdtmp);
return TPAX_SYSTEM_ERROR(dctx);
- } else if (tpax_stat_compare(srcst,&dstst)) {
+ } else if (tpax_util_stat_compare(srcst,&dstst)) {
close(fdsrc);
close(fdtmp);
return TPAX_CUSTOM_ERROR(dctx,TPAX_ERR_FILE_CHANGED);
diff --git a/src/helper/tpax_path_copy.c b/src/util/tpax_path_copy.c
index 084cc73..046ddde 100644
--- a/src/helper/tpax_path_copy.c
+++ b/src/util/tpax_path_copy.c
@@ -13,7 +13,7 @@
#include <tpax/tpax.h>
#include "tpax_driver_impl.h"
-int tpax_path_copy(
+int tpax_util_path_copy(
char * dstpath,
const char * srcpath,
size_t bufsize,
diff --git a/src/helper/tpax_stat_compare.c b/src/util/tpax_stat_compare.c
index 398e45c..2de6922 100644
--- a/src/helper/tpax_stat_compare.c
+++ b/src/util/tpax_stat_compare.c
@@ -18,7 +18,7 @@
return (src -> member > dst -> member) \
? (1) : (-1)
-int tpax_stat_compare(
+int tpax_util_stat_compare(
const struct stat * src,
const struct stat * dst)
{