From b56498361d59ed226132c4ac6ff889db0387ba21 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 9 Jun 2024 02:53:20 +0000 Subject: logic: renamed tpax_dirent_init_from_uctx() as tpax_dirent_init_from_stat(). --- src/logic/tpax_archive_enqueue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/logic/tpax_archive_enqueue.c') diff --git a/src/logic/tpax_archive_enqueue.c b/src/logic/tpax_archive_enqueue.c index 4f5683d..3afcb67 100644 --- a/src/logic/tpax_archive_enqueue.c +++ b/src/logic/tpax_archive_enqueue.c @@ -84,7 +84,7 @@ static char * tpax_add_prefix_item_from_path( return tpax_add_prefix_item(dctx,pathbuf); } -static int tpax_dirent_init_from_uctx( +static int tpax_dirent_init_from_stat( const struct stat * st, const char * basename, struct dirent * dirent) @@ -375,7 +375,7 @@ static int tpax_archive_enqueue_dir_entries( close(fdlnk); - if (tpax_dirent_init_from_uctx(&lnkst,lnktgt,lnkent) < 0) + if (tpax_dirent_init_from_stat(&lnkst,lnktgt,lnkent) < 0) return tpax_archive_enqueue_ret( TPAX_CUSTOM_ERROR( dctx, @@ -487,7 +487,7 @@ int tpax_archive_enqueue( 0); /* explicit item directory entry */ - if (tpax_dirent_init_from_uctx(uctx->st,name,dirent) < 0) + if (tpax_dirent_init_from_stat(uctx->st,name,dirent) < 0) return tpax_archive_enqueue_ret( TPAX_CUSTOM_ERROR( dctx, @@ -517,7 +517,7 @@ int tpax_archive_enqueue( close(fdlnk); - if (tpax_dirent_init_from_uctx(&lnkst,uctx->link[0],lnkent) < 0) + if (tpax_dirent_init_from_stat(&lnkst,uctx->link[0],lnkent) < 0) return tpax_archive_enqueue_ret( TPAX_CUSTOM_ERROR( dctx, -- cgit v1.2.3