]> andersk Git - moira.git/commitdiff
Get rid of 14-day waiting period.
authordanw <danw>
Sun, 29 Sep 1996 21:09:29 +0000 (21:09 +0000)
committerdanw <danw>
Sun, 29 Sep 1996 21:09:29 +0000 (21:09 +0000)
(Changed by dkk, I'm just checking it in.)

gen/sis.dc

index 987612d91bb1703f1a37b38cebbe39042f1a8a15..e2c4b98acde70ec92c5178aa54d3f8db7bc679e9 100644 (file)
@@ -39,7 +39,7 @@ char **argv;
     struct timeval now;
     EXEC SQL BEGIN DECLARE SECTION;
     char login[9], sig[257], id[17], kname[257];
-    int timestamp, cutoff;
+    int timestamp;
     struct { char login[12];
             char id[12];
             char sig[256];
@@ -78,10 +78,6 @@ char **argv;
        outf = NULL;
     }
 
-    /* the cutoff time is 14 days before now */
-    gettimeofday(&now, NULL);
-    cutoff = now.tv_sec - 14 * 24 * 60 * 60;
-
     /* The following is declarative, not executed,
      * and so is dependent on where it is in the file,
      * not in the order of execution of statements.
@@ -92,7 +88,7 @@ char **argv;
       SELECT u.login, u.clearid, u.signature, u.sigdate, s.string
       FROM users u, strings s
        WHERE u.status = 1 and u.sigwho = s.string_id and u.sigwho != 0
-         and u.secure <= :cutoff and u.secure != 0;
+         and u.secure != 0;
     EXEC SQL OPEN x;
     while (1) {
        EXEC SQL FETCH x INTO :login, :id, :sig, :timestamp, :kname;
This page took 0.03869 seconds and 5 git commands to generate.