summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-12 21:44:10 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-12 21:44:10 +0200
commitfe4eb1fe61042a08686be54a37f72de72bef70f8 (patch)
tree9c385055be67c9ec8dacfdadd513f9a43f2fb15b /src/lib
parentf17e50d1cf867fd38b46932187a819e15c1274bc (diff)
parent3020f8f7b0f2bd9825d71056194a80dd52757b6b (diff)
downloadouroboros-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.c5
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;