Module: xenomai-3
Branch: master
Commit: b3acca61db633ece76c7eebe175716ef6acaaa4d
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b3acca61db633ece76c7eebe175716ef6acaaa4d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Mar 23 15:23:12 2015 +0100

copperplate/registry: disambiguate socket usage

---

 lib/copperplate/registry.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index 26b777b..8c7354a 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -714,19 +714,19 @@ static int connect_regd(const char *sessdir, char 
**mountpt, int flags)
        sun.sun_path[0] = '\0';
 
        for (retries = 0; retries < 3; retries++) {
-               s = socket(AF_UNIX, SOCK_SEQPACKET, 0);
+               s = __STD(socket(AF_UNIX, SOCK_SEQPACKET, 0));
                if (s < 0) {
                        ret = -errno;
                        free(*mountpt);
                        return ret;
                }
-               ret = connect(s, (struct sockaddr *)&sun, addrlen);
+               ret = __STD(connect(s, (struct sockaddr *)&sun, addrlen));
                if (ret == 0) {
-                       ret = recv(s, *mountpt, PATH_MAX, 0);
+                       ret = __STD(recv(s, *mountpt, PATH_MAX, 0));
                        if (ret > 0)
                                return 0;
                }
-               close(s);
+               __STD(close(s));
                ret = spawn_daemon(sessdir, flags);
                if (ret)
                        break;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to