summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dbi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbi.c b/src/dbi.c
index ba4c113..0c7f030 100644
--- a/src/dbi.c
+++ b/src/dbi.c
@@ -69,7 +69,6 @@ int og_dbi_get_computer_info(struct og_dbi *dbi, struct og_computer *computer,
" ordenadores.idaula,"
" ordenadores.idperfilhard,"
" ordenadores.idrepositorio,"
- " ordenadores.mascara,"
" ordenadores.arranque,"
" ordenadores.netiface,"
" ordenadores.netdriver,"
@@ -78,6 +77,7 @@ int og_dbi_get_computer_info(struct og_dbi *dbi, struct og_computer *computer,
" ordenadores.inremotepc,"
" ordenadores.maintenance,"
" ordenadores.identorno,"
+ " aulas.netmask,"
" centros.idcentro "
"FROM ordenadores "
"INNER JOIN aulas ON aulas.idaula=ordenadores.idaula "
@@ -111,7 +111,7 @@ int og_dbi_get_computer_info(struct og_dbi *dbi, struct og_computer *computer,
computer->hardware_id = dbi_result_get_uint(result, "idperfilhard");
computer->repo_id = dbi_result_get_uint(result, "idrepositorio");
snprintf(computer->netmask, sizeof(computer->netmask), "%s",
- dbi_result_get_string(result, "mascara"));
+ dbi_result_get_string(result, "netmask"));
snprintf(computer->boot, sizeof(computer->boot), "%s",
dbi_result_get_string(result, "arranque"));
snprintf(computer->netiface, sizeof(computer->netiface), "%s",