]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adjusting code to update remotes table
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 26 Jul 2025 18:08:15 +0000 (14:08 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 26 Jul 2025 18:08:15 +0000 (14:08 -0400)
lib/gessql.c
lib/lvleml.c

index cde27d0fc0d9d1b4968ad5982e1c0e6f8e1cbded..fff68c09ee63f0d235d490330564bb2ca7d7e296 100644 (file)
@@ -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;
index 2b3a9675c91b6cb3fedd32f208c023d51ed3f247..1a1bc1d4eabbc9ab34eb35a12191e020d7265f11 100644 (file)
@@ -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) {