summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-12 20:02:54 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-12 20:02:54 +0200
commit3020f8f7b0f2bd9825d71056194a80dd52757b6b (patch)
tree9c385055be67c9ec8dacfdadd513f9a43f2fb15b /src/lib
parentf17e50d1cf867fd38b46932187a819e15c1274bc (diff)
downloadouroboros-3020f8f7b0f2bd9825d71056194a80dd52757b6b.tar.gz
ouroboros-3020f8f7b0f2bd9825d71056194a80dd52757b6b.zip
lib: shm_ap_rbuff: small fixes
Unnecessary filename string removed. Formatting fix.
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;