[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] remove unused function semaphore_post()
From: |
Trevor Saunders |
Subject: |
[PATCH] remove unused function semaphore_post() |
Date: |
Wed, 7 Dec 2011 13:16:31 -0500 |
everything uses pthread sem_t's not sysv ipc semaphores, so get rid of
this.
---
src/modules/module_utils.c | 12 ------------
src/modules/module_utils.h | 1 -
2 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/src/modules/module_utils.c b/src/modules/module_utils.c
index 6368011..a4c187a 100644
--- a/src/modules/module_utils.c
+++ b/src/modules/module_utils.c
@@ -945,18 +945,6 @@ module_recode_to_iso(char *data, int bytes, char
*language, char *fallback)
return recoded;
}
-int
-semaphore_post(int sem_id)
-{
- static struct sembuf sem_b;
-
- sem_b.sem_num = 0;
- sem_b.sem_op = 1; /* V() */
- sem_b.sem_flg = SEM_UNDO;
- return semop(sem_id, &sem_b, 1);
-}
-
-
void
module_send_asynchronous(char *text)
{
diff --git a/src/modules/module_utils.h b/src/modules/module_utils.h
index d708751..a072828 100644
--- a/src/modules/module_utils.h
+++ b/src/modules/module_utils.h
@@ -229,7 +229,6 @@ int module_terminate_thread(pthread_t thread);
sem_t *module_semaphore_init();
char *module_recode_to_iso(char *data, int bytes, char *language,
char *fallback);
-int semaphore_post(int sem_id);
void module_signal_end(void);
configoption_t *module_add_config_option(configoption_t * options,
int *num_options, char *name, int type,
--
1.7.7.3
- [PATCH] remove unused function semaphore_post(),
Trevor Saunders <=