Skip to content
Snippets Groups Projects
Commit f1d3e924 authored by rswindell's avatar rswindell
Browse files

Using listShiftNode() macro.

parent 622d7827
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ void ciolib_mouse_thread(void *data)
struct in_mouse_event *in;
pthread_mutex_lock(&in_mutex);
in=listRemoveNode(&state.input, FIRST_NODE);
in=listShiftNode(&state.input);
pthread_mutex_unlock(&in_mutex);
if(in==NULL)
continue;
......@@ -450,7 +450,7 @@ int ciolib_getmouse(struct mouse_event *mevent)
if(listCountNodes(&state.output)) {
struct out_mouse_event *out;
pthread_mutex_lock(&out_mutex);
out=listRemoveNode(&state.output,FIRST_NODE);
out=listShiftNode(&state.output);
pthread_mutex_unlock(&out_mutex);
if(out==NULL)
return(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment