Fix typos

This commit is contained in:
Nils O. Selåsdal
2012-11-12 21:55:06 +01:00
parent 553f670a2a
commit a4c80d1c76
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -149,7 +149,7 @@ int uc_thread_queue_get(struct uc_threadqueue *queue, const struct timespec *tim
return 0;
}
static void uc_thread_queue_walk_unlocled(struct uc_threadqueue *queue, uc_thread_queue_walk_func walk_func)
static void uc_thread_queue_walk_unlocked(struct uc_threadqueue *queue, uc_thread_queue_walk_func walk_func)
{
struct uc_threadmsg *p;
struct uc_threadmsg *next;
@@ -167,7 +167,7 @@ int uc_thread_queue_walk(struct uc_threadqueue *queue, uc_thread_queue_walk_func
pthread_mutex_lock(&queue->mutex);
uc_thread_queue_walk_unlocled(queue, walk_func);
uc_thread_queue_walk_unlocked(queue, walk_func);
pthread_mutex_unlock(&queue->mutex);
@@ -198,7 +198,7 @@ int uc_thread_queue_cleanup(struct uc_threadqueue *queue, uc_thread_queue_walk_f
}
if(free_func) {
uc_thread_queue_walk_unlocled(queue, free_func);
uc_thread_queue_walk_unlocked(queue, free_func);
}
pthread_mutex_unlock(&queue->mutex);
@@ -211,7 +211,7 @@ int uc_thread_queue_cleanup(struct uc_threadqueue *queue, uc_thread_queue_walk_f
}
long thread_queue_length(struct uc_threadqueue *queue)
long uc_thread_queue_length(struct uc_threadqueue *queue)
{
long length;
// get the length properly
+1 -1
View File
@@ -70,7 +70,7 @@ struct uc_threadmsg{
struct uc_threadmsg *next;
};
typedef int (*uc_thread_queue_walk_func) (struct uc_threadmsg *msg);
typedef void (*uc_thread_queue_walk_func) (struct uc_threadmsg *msg);
/**