diff options
author | Sander Vrijders <[email protected]> | 2016-05-12 21:44:10 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-05-12 21:44:10 +0200 |
commit | fe4eb1fe61042a08686be54a37f72de72bef70f8 (patch) | |
tree | 9c385055be67c9ec8dacfdadd513f9a43f2fb15b /src/lib | |
parent | f17e50d1cf867fd38b46932187a819e15c1274bc (diff) | |
parent | 3020f8f7b0f2bd9825d71056194a80dd52757b6b (diff) | |
download | ouroboros-fe4eb1fe61042a08686be54a37f72de72bef70f8.tar.gz ouroboros-fe4eb1fe61042a08686be54a37f72de72bef70f8.zip |
Merged in dstaesse/ouroboros/be-rbuff (pull request #79)
lib: shm_ap_rbuff: small fixes
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/shm_ap_rbuff.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/shm_ap_rbuff.c b/src/lib/shm_ap_rbuff.c index aab6d78b..6c977cbb 100644 --- a/src/lib/shm_ap_rbuff.c +++ b/src/lib/shm_ap_rbuff.c @@ -179,15 +179,11 @@ struct shm_ap_rbuff * shm_ap_rbuff_open(pid_t pid) } void shm_ap_rbuff_close(struct shm_ap_rbuff * rb) { - char fn[25]; - if (rb == NULL) { LOG_DBGF("Bogus input. Bugging out."); return; } - sprintf(fn, SHM_AP_RBUFF_PREFIX "%d", rb->pid); - if (munmap(rb->shm_base, SHM_RBUFF_FILE_SIZE) == -1) LOG_DBGF("Couldn't unmap shared memory."); @@ -198,7 +194,6 @@ void shm_ap_rbuff_destroy(struct shm_ap_rbuff * rb) { char fn[25]; - if (rb == NULL) { LOG_DBGF("Bogus input. Bugging out."); return; |