]> andersk Git - moira.git/commitdiff
Added user status information as argument #10 to the incremental program
authortytso <tytso>
Fri, 10 Dec 1993 13:46:14 +0000 (13:46 +0000)
committertytso <tytso>
Fri, 10 Dec 1993 13:46:14 +0000 (13:46 +0000)
for the members table.

Removed declaration for malloc, to support optional debugging malloc.

server/increment.dc

index e516c1486782dd17137990699571f53f34c8314b..c81361a616c2b4c0a5dd07ae824f85cf4d44aba0 100644 (file)
@@ -21,7 +21,6 @@ static char *rcsid_increment_dc = "$Header$";
 EXEC SQL INCLUDE sqlca;
 
 extern char *whoami;
-char *malloc();
 
 int inc_pid = 0;
 int inc_running = 0;
@@ -197,8 +196,12 @@ char **argv;
        strcpy(barg0, name);
        strcpy(barg1, argv[1]);
        id = (int) argv[2];
+       beforec = 9;
        if (!strcmp(barg1, "USER")) {
            id_to_name(id, barg1, &name);
+           EXEC SQL SELECT CHAR(status) INTO :barg9 FROM users 
+               WHERE users_id=:id;
+           beforec = 10;
        } else if (!strcmp(barg1, "LIST")) {
            id_to_name(id, barg1, &name);
        } else if (!strcmp(barg1, "STRING")) {
@@ -208,7 +211,6 @@ char **argv;
        }
        strcpy(barg2, name);
        free(name);
-       beforec = 9;
     } /* else
       com_err(whoami, 0, "unknown table in incremental_before"); */
 }
@@ -313,8 +315,12 @@ EXEC SQL END DECLARE SECTION;
        strcpy(aarg0, name);
        strcpy(aarg1, argv[1]);
        id = (int) argv[2];
+       afterc = 9;
        if (!strcmp(aarg1, "USER")) {
            id_to_name(id, aarg1, &name);
+           EXEC SQL SELECT CHAR(status) INTO :aarg9 FROM users 
+               WHERE users_id=:id;
+           afterc = 10;
        } else if (!strcmp(aarg1, "LIST")) {
            id_to_name(id, aarg1, &name);
        } else if (!strcmp(aarg1, "STRING")) {
@@ -324,7 +330,6 @@ EXEC SQL END DECLARE SECTION;
        }
        strcpy(aarg2, name);
        free(name);
-       afterc = 9;
     } else if (!strcmp(table, "clear")) {
        afterc = 0;
        table = beforetable;
This page took 0.180413 seconds and 5 git commands to generate.