summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/src
diff options
context:
space:
mode:
Diffstat (limited to 'extras/libmemif/src')
-rw-r--r--extras/libmemif/src/main.c2
-rw-r--r--extras/libmemif/src/memif_private.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/libmemif/src/main.c b/extras/libmemif/src/main.c
index 42bced67dae..dc4a6231118 100644
--- a/extras/libmemif/src/main.c
+++ b/extras/libmemif/src/main.c
@@ -1346,7 +1346,7 @@ memif_init_regions_and_queues (memif_connection_t * conn)
(conn->run_args.num_s2m_rings + conn->run_args.num_m2s_rings);
if ((r->fd =
- memif_memfd_create ("memif region 0", MFD_ALLOW_SEALING)) == -1)
+ memfd_create ("memif region 0", MFD_ALLOW_SEALING)) == -1)
return memif_syscall_error_handler (errno);
if ((fcntl (r->fd, F_ADD_SEALS, F_SEAL_SHRINK)) == -1)
diff --git a/extras/libmemif/src/memif_private.h b/extras/libmemif/src/memif_private.h
index b1039f9d385..accdac361b9 100644
--- a/extras/libmemif/src/memif_private.h
+++ b/extras/libmemif/src/memif_private.h
@@ -215,7 +215,7 @@ int free_list_elt (memif_list_elt_t * list, uint16_t len, int key);
#ifndef HAVE_MEMFD_CREATE
static inline int
-memif_memfd_create (const char *name, unsigned int flags)
+memfd_create (const char *name, unsigned int flags)
{
return syscall (__NR_memfd_create, name, flags);
}