From 7838af1dc1101b8fbfdef56b9bb3cd0bb087bbd8 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Fri, 18 Oct 2013 10:51:44 +1100 Subject: [PATCH] Remove unused variables. --- util.c | 2 +- util.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index c05d586e..48c92251 100644 --- a/util.c +++ b/util.c @@ -2506,7 +2506,7 @@ void *completion_thread(void *arg) return NULL; } -bool _cg_completion_timeout(void *fn, void *fnarg, int timeout, const char *file, const char *func, const int line) +bool cg_completion_timeout(void *fn, void *fnarg, int timeout) { struct cg_completion *cgc; pthread_t pthread; diff --git a/util.h b/util.h index 5d175d73..f258c40e 100644 --- a/util.h +++ b/util.h @@ -134,14 +134,13 @@ void _cgsem_post(cgsem_t *cgsem, const char *file, const char *func, const int l void _cgsem_wait(cgsem_t *cgsem, const char *file, const char *func, const int line); int _cgsem_mswait(cgsem_t *cgsem, int ms, const char *file, const char *func, const int line); void _cgsem_destroy(cgsem_t *cgsem); -bool _cg_completion_timeout(void *fn, void *fnarg, int timeout, const char *file, const char *func, const int line); +bool cg_completion_timeout(void *fn, void *fnarg, int timeout); #define cgsem_init(_sem) _cgsem_init(_sem, __FILE__, __func__, __LINE__) #define cgsem_post(_sem) _cgsem_post(_sem, __FILE__, __func__, __LINE__) #define cgsem_wait(_sem) _cgsem_wait(_sem, __FILE__, __func__, __LINE__) #define cgsem_mswait(_sem, _timeout) _cgsem_mswait(_sem, _timeout, __FILE__, __func__, __LINE__) #define cgsem_destroy(_sem) _cgsem_destroy(_sem) -#define cg_completion_timeout(fn, fnarg, timeout) _cg_completion_timeout(fn, fnarg, timeout, __FILE__, __func__, __LINE__) /* Align a size_t to 4 byte boundaries for fussy arches */ static inline void align_len(size_t *len)