diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:26:24 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:31:48 +0200 |
commit | f4e7832656a2b27d6ae735593714aaf8ff7b6a84 (patch) | |
tree | f578bc6a77911ebd5cf02a366bd2b9447811f3f7 /sources/ogAdmServer.c | |
parent | d8f2e6ba207a809799ae3e1ae4eac64f806b9c18 (diff) |
#971 add str_toupper()
Add new utils.c file and replace old StrToUpper().
Diffstat (limited to 'sources/ogAdmServer.c')
-rw-r--r-- | sources/ogAdmServer.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sources/ogAdmServer.c b/sources/ogAdmServer.c index 422947d..f4b287e 100644 --- a/sources/ogAdmServer.c +++ b/sources/ogAdmServer.c @@ -9,6 +9,7 @@ #include "ogAdmServer.h" #include "ogAdmLib.c" #include "dbi.h" +#include "utils.h" #include "list.h" #include "schedule.h" #include <ev.h> @@ -75,21 +76,21 @@ static bool tomaConfiguracion(const char *filecfg) key = strtok(line, delim); value = strtok(NULL, delim); - if (!strcmp(StrToUpper(key), "SERVIDORADM")) + if (!strcmp(str_toupper(key), "SERVIDORADM")) snprintf(servidoradm, sizeof(servidoradm), "%s", value); - else if (!strcmp(StrToUpper(key), "PUERTO")) + else if (!strcmp(str_toupper(key), "PUERTO")) snprintf(puerto, sizeof(puerto), "%s", value); - else if (!strcmp(StrToUpper(key), "USUARIO")) + else if (!strcmp(str_toupper(key), "USUARIO")) snprintf(usuario, sizeof(usuario), "%s", value); - else if (!strcmp(StrToUpper(key), "PASSWORD")) + else if (!strcmp(str_toupper(key), "PASSWORD")) snprintf(pasguor, sizeof(pasguor), "%s", value); - else if (!strcmp(StrToUpper(key), "DATASOURCE")) + else if (!strcmp(str_toupper(key), "DATASOURCE")) snprintf(datasource, sizeof(datasource), "%s", value); - else if (!strcmp(StrToUpper(key), "CATALOG")) + else if (!strcmp(str_toupper(key), "CATALOG")) snprintf(catalog, sizeof(catalog), "%s", value); - else if (!strcmp(StrToUpper(key), "INTERFACE")) + else if (!strcmp(str_toupper(key), "INTERFACE")) snprintf(interface, sizeof(interface), "%s", value); - else if (!strcmp(StrToUpper(key), "APITOKEN")) + else if (!strcmp(str_toupper(key), "APITOKEN")) snprintf(auth_token, sizeof(auth_token), "%s", value); line = fgets(buf, sizeof(buf), fcfg); |