summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-09 08:15:56 +0000
committerng0 <ng0@n0.is>2019-09-09 08:15:56 +0000
commita4543a4105ca6cea2bd558aed8d2e87981d535ea (patch)
tree62897e8c990fccae0302d5d7b16927abeb204691 /src
parentfcaae74db237d96033a539209d8110f28666588d (diff)
plibc removal: ACCESS->access
Diffstat (limited to 'src')
-rw-r--r--src/mysql/mysql.c2
-rw-r--r--src/pt/test_gns_vpn.c2
-rw-r--r--src/pt/test_gnunet_vpn.c2
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c
index 50f5683d7..68a75d083 100644
--- a/src/mysql/mysql.c
+++ b/src/mysql/mysql.c
@@ -196,7 +196,7 @@ get_my_cnf_path(const struct GNUNET_CONFIGURATION_Handle *cfg,
"mysql",
_("Trying to use file `%s' for MySQL configuration.\n"),
cnffile);
- if ((0 != STAT(cnffile, &st)) || (0 != ACCESS(cnffile, R_OK)) ||
+ if ((0 != stat(cnffile, &st)) || (0 != access(cnffile, R_OK)) ||
(!S_ISREG(st.st_mode)))
{
if (configured == GNUNET_YES)
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c
index 8a6e3e6d4..dbbdc830e 100644
--- a/src/pt/test_gns_vpn.c
+++ b/src/pt/test_gns_vpn.c
@@ -798,7 +798,7 @@ main(int argc,
GNUNET_log_setup("test-gns-vpn",
"WARNING",
NULL);
- if (0 != ACCESS("/dev/net/tun", R_OK))
+ if (0 != access("/dev/net/tun", R_OK))
{
GNUNET_log_strerror_file(GNUNET_ERROR_TYPE_ERROR,
"access",
diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c
index ae5910824..60f4aad2a 100644
--- a/src/pt/test_gnunet_vpn.c
+++ b/src/pt/test_gnunet_vpn.c
@@ -421,7 +421,7 @@ main(int argc, char *const *argv)
int ret = 0;
#ifndef MINGW
- if (0 != ACCESS("/dev/net/tun", R_OK))
+ if (0 != access("/dev/net/tun", R_OK))
{
GNUNET_log_strerror_file(GNUNET_ERROR_TYPE_ERROR,
"access",
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index 8ef73e3ae..470c03af8 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -450,7 +450,7 @@ iface_proc(void *cls,
GNUNET_asprintf(&filename,
"/dev/cryogenic/%s",
name);
- if (0 == ACCESS(name, R_OK))
+ if (0 == access(name, R_OK))
{
ba->cryogenic_fd =
GNUNET_DISK_file_open(filename,
@@ -505,7 +505,7 @@ iface_proc(void *cls,
GNUNET_asprintf(&filename,
"/dev/cryogenic/%s",
name);
- if (0 == ACCESS(name, R_OK))
+ if (0 == access(name, R_OK))
{
ba->cryogenic_fd =
GNUNET_DISK_file_open(filename,