diff --git a/package/gluon-mesh-babel/src/respondd.c b/package/gluon-mesh-babel/src/respondd.c
index dd47e36636f1d29ad812eaf37a3f3f5b7f19cb5e..7caecb475ec9e40272134c25dbb368d75243860e 100644
--- a/package/gluon-mesh-babel/src/respondd.c
+++ b/package/gluon-mesh-babel/src/respondd.c
@@ -575,7 +575,7 @@ static struct json_object * get_clients(void) {
 
 	count_stations(&wifi24, &wifi5);
 
-	size_t total = ask_l3roamd_for_client_count();
+	int total = ask_l3roamd_for_client_count();
 
 	size_t wifi = wifi24 + wifi5;
 	struct json_object *ret = json_object_new_object();