Use unsigned types instead of long for threadqueue
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user