diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2018-10-31 17:58:50 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-01-17 13:18:06 +0100 |
commit | 2427e9d8fe9039f4c6a9b103381463f1d1ed0ec8 (patch) | |
tree | 9535d2e52356f35eca0689069c3538edb63528d9 /sources/ogAdmServer.cpp | |
parent | 2ef2ceabfafe29632ac09c4fe972f01c9edc859d (diff) |
#580 move global variable definitions to file
Save us from unnecessary initialization given this is in the .bss area.
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index a207917..b8ca3a5 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -8,6 +8,13 @@ // ******************************************************************************************************* #include "ogAdmServer.h" #include "ogAdmLib.c" + +static char usuario[LONPRM]; // Usuario de acceso a la base de datos +static char pasguor[LONPRM]; // Password del usuario +static char datasource[LONPRM]; // Dirección IP del gestor de base de datos +static char catalog[LONPRM]; // Nombre de la base de datos +static char aulaup[LONPRM]; // Conmutador para registro automático de clientes + //________________________________________________________________________________________________________ // Función: tomaConfiguracion // @@ -36,11 +43,6 @@ bool tomaConfiguracion(char* filecfg) { } servidoradm[0] = (char) NULL; //inicializar variables globales - usuario[0] = (char) NULL; - pasguor[0] = (char) NULL; - datasource[0] = (char) NULL; - catalog[0] = (char) NULL; - aulaup[0] = (char) NULL; line = fgets(buf, sizeof(buf), fcfg); while (line != NULL) { |