/*
- Copyright 2015 IoT.bzh
+ Copyright 2015, 2016 IoT.bzh
+
+ author: José Bollo <jose.bollo@iot.bzh>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
#include <unistd.h>
#include <string.h>
-#include <syslog.h>
#include <assert.h>
#include <errno.h>
return next(xmlDocGetRootElement(configxml)->children, type);
}
-static int scorelang(xmlNodePtr node)
+static unsigned int scorelang(xmlNodePtr node)
{
char *lang = xmlNodeGetLang(node);
- int score = wgt_locales_score(configwgt, lang);
+ unsigned int score = wgt_locales_score(configwgt, lang);
xmlFree(lang);
return score;
}
static xmlNodePtr element_based_localisation(const char *type)
{
xmlNodePtr resu, elem;
- int sr, s;
+ unsigned int sr, s;
resu = first(type);
if (resu) {