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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Dec  4 17:55:01 2012 +0100

copperplate: remove obsolete wrappers around shm calls

---

 lib/copperplate/heapobj-pshared.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 5f04bfa..5e05446 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -598,9 +598,9 @@ static int create_heap(struct heapobj *hobj, const char 
*session,
        snprintf(hobj->fsname, sizeof(hobj->fsname), "/xeno:%s", hobj->name);
 
        if (flags & HOBJ_FORCE)
-               __STD(shm_unlink(hobj->fsname));
+               shm_unlink(hobj->fsname);
 
-       fd = __STD(shm_open(hobj->fsname, O_RDWR|O_CREAT, 0600));
+       fd = shm_open(hobj->fsname, O_RDWR|O_CREAT, 0600);
        if (fd < 0)
                return __bt(-errno);
 
@@ -646,7 +646,7 @@ finish:
        return 0;
 unlink_fail:
        ret = __bt(-errno);
-       __STD(shm_unlink(hobj->fsname));
+       shm_unlink(hobj->fsname);
        goto close_fail;
 errno_fail:
        ret = __bt(-errno);
@@ -711,7 +711,7 @@ void heapobj_destroy(struct heapobj *hobj)
        __STD(close(hobj->fd));
 
        if (cpid == copperplate_get_tid() || (cpid && kill(cpid, 0)))
-               __STD(shm_unlink(hobj->fsname));
+               shm_unlink(hobj->fsname);
 }
 
 int heapobj_extend(struct heapobj *hobj, size_t size, void *mem)


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

Reply via email to