gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: plibc removal: ACCESS->acce


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: plibc removal: ACCESS->access
Date: Mon, 09 Sep 2019 10:18:02 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a4543a410 plibc removal: ACCESS->access
a4543a410 is described below

commit a4543a4105ca6cea2bd558aed8d2e87981d535ea
Author: ng0 <address@hidden>
AuthorDate: Mon Sep 9 08:15:56 2019 +0000

    plibc removal: ACCESS->access
---
 src/mysql/mysql.c                                 | 2 +-
 src/pt/test_gns_vpn.c                             | 2 +-
 src/pt/test_gnunet_vpn.c                          | 2 +-
 src/transport/plugin_transport_udp_broadcasting.c | 4 ++--
 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]