diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/eurephiadb-driver_template.c | 4 | ||||
-rw-r--r-- | database/sqlite/administration/lastlog.c | 2 | ||||
-rw-r--r-- | database/sqlite/administration/useraccount.c | 6 | ||||
-rw-r--r-- | database/sqlite/edb-sqlite.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/database/eurephiadb-driver_template.c b/database/eurephiadb-driver_template.c index 5b0008b..695e5c5 100644 --- a/database/eurephiadb-driver_template.c +++ b/database/eurephiadb-driver_template.c @@ -389,7 +389,7 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) // Update attempt information update_attempts(ctx, blid); } else { - eurephia_log(ctx, LOG_FATAL, 0, "Quering openvpn_blacklist for blacklisted %s failed", + eurephia_log(ctx, LOG_FATAL, 0, "Querying openvpn_blacklist for blacklisted %s failed", eDBattempt_types[type].descr); } @@ -427,7 +427,7 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) free_nullsafe(atpid); } else { eurephia_log(ctx, LOG_CRITICAL, 0, - "Quering openvpn_attempts for blacklisted %s failed", + "Querying openvpn_attempts for blacklisted %s failed", eDBattempt_types[type].descr); } free_nullsafe(atpr); diff --git a/database/sqlite/administration/lastlog.c b/database/sqlite/administration/lastlog.c index 60856a7..f700cee 100644 --- a/database/sqlite/administration/lastlog.c +++ b/database/sqlite/administration/lastlog.c @@ -107,7 +107,7 @@ xmlDoc *eDBadminGetLastlog(eurephiaCTX *ctx, xmlDoc *srch_xml, const char *sortk eDBfreeMapping(fmap); xmlFreeDoc(doc); if( res == NULL ) { - eurephia_log(ctx, LOG_ERROR, 0, "Quering the lastlog failed"); + eurephia_log(ctx, LOG_ERROR, 0, "Querying the lastlog failed"); return NULL; } eurephiaXML_CreateDoc(ctx, 1, "lastlog", &doc, &lastl); diff --git a/database/sqlite/administration/useraccount.c b/database/sqlite/administration/useraccount.c index c33abcd..0571d98 100644 --- a/database/sqlite/administration/useraccount.c +++ b/database/sqlite/administration/useraccount.c @@ -239,7 +239,7 @@ static xmlDoc *useracc_view(eurephiaCTX *ctx, unsigned int infoType, " WHERE uid = '%i' ORDER BY login, logout", uid); if( qres == NULL ) { - eurephia_log(ctx, LOG_ERROR, 0, "Quering the lastlog failed"); + eurephia_log(ctx, LOG_ERROR, 0, "Querying the lastlog failed"); xmlFreeDoc(doc); return eurephiaXML_ResultMsg(ctx, exmlERROR, NULL, "Failed to query the lastlog"); @@ -304,7 +304,7 @@ static xmlDoc *useracc_view(eurephiaCTX *ctx, unsigned int infoType, " WHERE username = '%q'", username); if( (qres == NULL) || (sqlite_get_numtuples(qres) > 1) ) { - eurephia_log(ctx, LOG_ERROR, 0, "Quering for login attempts failed"); + eurephia_log(ctx, LOG_ERROR, 0, "Querying for login attempts failed"); sqlite_free_results(qres); xmlFreeDoc(doc); return eurephiaXML_ResultMsg(ctx, exmlERROR, NULL, @@ -332,7 +332,7 @@ static xmlDoc *useracc_view(eurephiaCTX *ctx, unsigned int infoType, " WHERE username = '%q'", username); if( (qres == NULL) || (sqlite_get_numtuples(qres) > 1) ) { - eurephia_log(ctx, LOG_ERROR, 0, "Quering blacklist log failed"); + eurephia_log(ctx, LOG_ERROR, 0, "Querying blacklist log failed"); sqlite_free_results(qres); xmlFreeDoc(doc); return eurephiaXML_ResultMsg(ctx, exmlERROR, NULL, diff --git a/database/sqlite/edb-sqlite.c b/database/sqlite/edb-sqlite.c index f1007d3..3860e63 100644 --- a/database/sqlite/edb-sqlite.c +++ b/database/sqlite/edb-sqlite.c @@ -426,7 +426,7 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) // Update attempt information update_attempts(ctx, blid); } else { - eurephia_log(ctx, LOG_FATAL, 0, "Quering openvpn_blacklist for blacklisted %s failed", + eurephia_log(ctx, LOG_FATAL, 0, "Querying openvpn_blacklist for blacklisted %s failed", eDBattempt_types[type].descr); } @@ -462,7 +462,7 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) } free_nullsafe(ctx, atpid); } else { - eurephia_log(ctx, LOG_CRITICAL, 0, "Quering openvpn_attempts for blacklisted %s failed", + eurephia_log(ctx, LOG_CRITICAL, 0, "Querying openvpn_attempts for blacklisted %s failed", eDBattempt_types[type].descr); } free_nullsafe(ctx, atpr); |