summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;