From: Jean-Marc Pigeon (Delson) Date: Sat, 26 Jul 2025 18:08:15 +0000 (-0400) Subject: Adjusting code to update remotes table X-Git-Tag: tag-0.14~9 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=0ee2c1bf62a42b9acf9238099858337ef84b1432;p=jmp%2Fmailleur Adjusting code to update remotes table --- diff --git a/lib/gessql.c b/lib/gessql.c index cde27d0..fff68c0 100644 --- a/lib/gessql.c +++ b/lib/gessql.c @@ -431,7 +431,7 @@ static _Bool update_remote(SQLPTR *sqlptr,char *rmtip,SRVTYP *srv) { #define OPEP "gessql.c:update_remote," -static const char *upd= "UPDATE "RMTTBL"SET " +static const char *upd= "UPDATE "RMTTBL" SET " "lastscan='%s',lastupdate='%s'," "credit=%d,listing=%s,reverse=%s " "WHERE remoteip='%s'"; @@ -447,7 +447,7 @@ lastscan=sql_fromunixtime(sqlptr,srv->lastscan); update=sql_fromunixtime(sqlptr,srv->update); listing=sql_gooddata(sqlptr,srv->listing); reverse=sql_gooddata(sqlptr,srv->reverse); -if (sql_request(sqlptr,upd,lastscan,srv->credit,listing,reverse,srv->rmtip)!=1) { +if (sql_request(sqlptr,upd,lastscan,update,srv->credit,listing,reverse,srv->rmtip)!=1) { (void) rou_alert(0,"%s Unable to update remote_ip <%s> (Database?)", OPEP,srv->rmtip); isok=false; diff --git a/lib/lvleml.c b/lib/lvleml.c index 2b3a967..1a1bc1d 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -2640,7 +2640,7 @@ srv=(SRVTYP *)0; phase=0; proceed=true; while (proceed==true) { - //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase); + (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase); switch (phase){ case 0 : //check for binding if (contact==(CONTYP *)0) {