summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-07-24 17:06:30 +0000
committerLaurent Bercot <ska@appnovation.com>2021-07-24 17:06:30 +0000
commitc15bccec3fd551583ff838673ba284ee6c7e788a (patch)
tree4937bcf2fdd6232a6404b8ca47c3d325781099f6
parent4414a4b9d8495320e54eaae05572a30b25b4401c (diff)
downloadskalibs-c15bccec3fd551583ff838673ba284ee6c7e788a.tar.xz
Don't use dirfd as an identifier
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/libstddjb/cdb_init_at.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/cdb_init_at.c b/src/libstddjb/cdb_init_at.c
index faea790..0775ea5 100644
--- a/src/libstddjb/cdb_init_at.c
+++ b/src/libstddjb/cdb_init_at.c
@@ -4,9 +4,9 @@
#include <skalibs/cdb.h>
#include <skalibs/unix-transactional.h>
-int cdb_init_at (cdb *c, int dirfd, char const *file)
+int cdb_init_at (cdb *c, int dfd, char const *file)
{
- int fd = open_readat(dirfd, file) ;
+ int fd = open_readat(dfd, file) ;
if (fd < 0) return 0 ;
if (!cdb_init_fromfd(c, fd))
{