Fix some compiler errors in user-work queue configuration that crept in the last bunch of commits

This commit is contained in:
Gregory Nutt 2014-10-11 16:27:24 -06:00
parent 4c2a14348a
commit 0c1c37bae2
4 changed files with 3 additions and 6 deletions

View File

@ -94,7 +94,7 @@ int work_lock(void)
int ret;
#ifdef CONFIG_BUILD_PROTECTED
int ret = sem_wait(&g_usrsem);
ret = sem_wait(&g_usrsem);
if (ret < 0)
{
DEBUGASSERT(errno == EINTR);

View File

@ -87,8 +87,6 @@
*
****************************************************************************/
#if defined(CONFIG_LIB_USRWORK) && !defined(__KERNEL__)
int work_signal(int qid)
{
int ret;

View File

@ -87,9 +87,9 @@ struct usr_wqueue_s g_usrwork;
/* This semaphore supports exclusive access to the user-mode work queue */
#ifdef CONFIG_BUILD_PROTECTED
extern sem_t g_usrsem;
sem_t g_usrsem;
#else
extern pthread_mutex_t g_usrmutex;
pthread_mutex_t g_usrmutex;
#endif
/****************************************************************************

View File

@ -81,7 +81,6 @@ extern sem_t g_usrsem;
#else
extern pthread_mutex_t g_usrmutex;
#endif
#endif
/****************************************************************************
* Public Function Prototypes