Use unsigned types instead of long for threadqueue

This commit is contained in:
Nils O. Selåsdal
2013-11-17 21:02:02 +01:00
parent 0679a4a2ad
commit 938ffe330d
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ static inline void uc_get_absolute_time(struct timespec *result,
}
}
int uc_thread_queue_init(struct uc_threadqueue *queue, long max_elements)
int uc_thread_queue_init(struct uc_threadqueue *queue, unsigned int max_elements)
{
int rc = 0;
if (queue == NULL || max_elements <= 0) {
@@ -265,9 +265,9 @@ int uc_thread_queue_destroy(struct uc_threadqueue *queue,
}
long uc_thread_queue_length(struct uc_threadqueue *queue)
unsigned int uc_thread_queue_length(struct uc_threadqueue *queue)
{
long length;
unsigned int length;
if (queue == NULL ) {
return -EINVAL;