aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-12-28 21:01:03 +0100
committerThomas Jansen <mithi@mithi.net>2008-12-28 21:01:03 +0100
commitf31b4f46e17f2af17b4d6549d16e8f111b21688d (patch)
tree3d9a90341832af7eecb991eafdc22a6782c35004 /src/utils.c
parent1914e114664e119434d080440622615e5d18b2a8 (diff)
downloadmpd-f31b4f46e17f2af17b4d6549d16e8f111b21688d.tar.gz
mpd-f31b4f46e17f2af17b4d6549d16e8f111b21688d.tar.xz
mpd-f31b4f46e17f2af17b4d6549d16e8f111b21688d.zip
Remove xpthread_* wrappers
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/utils.c b/src/utils.c
index 9d763c484..372414ab8 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -196,34 +196,6 @@ void init_async_pipe(int file_des[2])
FATAL("Couldn't set non-blocking I/O: %s\n", strerror(errno));
}
-void xpthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a)
-{
- int err;
- if ((err = pthread_mutex_init(m, a)))
- FATAL("failed to init mutex: %s\n", strerror(err));
-}
-
-void xpthread_cond_init(pthread_cond_t *c, pthread_condattr_t *a)
-{
- int err;
- if ((err = pthread_cond_init(c, a)))
- FATAL("failed to init cond: %s\n", strerror(err));
-}
-
-void xpthread_mutex_destroy(pthread_mutex_t *mutex)
-{
- int err;
- if ((err = pthread_mutex_destroy(mutex)))
- FATAL("failed to destroy mutex: %s\n", strerror(err));
-}
-
-void xpthread_cond_destroy(pthread_cond_t *cond)
-{
- int err;
- if ((err = pthread_cond_destroy(cond)))
- FATAL("failed to destroy cond: %s\n", strerror(err));
-}
-
int stringFoundInStringArray(const char *const*array, const char *suffix)
{
while (array && *array) {