about summary refs log tree commit diff stats
path: root/tests/unittests/test_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_common.c')
-rw-r--r--tests/unittests/test_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_common.c b/tests/unittests/test_common.c
index 4849a4a7..b6ae4bb9 100644
--- a/tests/unittests/test_common.c
+++ b/tests/unittests/test_common.c
@@ -1,3 +1,4 @@
+#include "xmpp/resource.h"
 #include "common.h"
 #include <stdarg.h>
 #include <stddef.h>
@@ -316,8 +317,8 @@ _lists_equal(GSList *a, GSList *b)
             return FALSE;
         }
 
-        curra = g_list_next(curra);
-        currb = g_list_next(currb);
+        curra = g_slist_next(curra);
+        currb = g_slist_next(currb);
     }
 
     return TRUE;