update dates of headers
[src/app-framework-main.git] / src / wgt-config.c
index 2e32628..39f72ce 100644 (file)
@@ -1,5 +1,7 @@
 /*
- 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.
@@ -16,7 +18,6 @@
 
 #include <unistd.h>
 #include <string.h>
-#include <syslog.h>
 #include <assert.h>
 #include <errno.h>
 
@@ -72,10 +73,10 @@ static xmlNodePtr first(const char *type)
        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;
 }
@@ -83,7 +84,7 @@ static int scorelang(xmlNodePtr node)
 static xmlNodePtr element_based_localisation(const char *type)
 {
        xmlNodePtr resu, elem;
-       int sr, s;
+       unsigned int sr, s;
 
        resu = first(type);
        if (resu) {