From edf38460783eddd01b5afad0cdaa551203dac70d Mon Sep 17 00:00:00 2001 From: tytso Date: Fri, 10 Dec 1993 13:46:14 +0000 Subject: [PATCH] Added user status information as argument #10 to the incremental program for the members table. Removed declaration for malloc, to support optional debugging malloc. --- server/increment.dc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/server/increment.dc b/server/increment.dc index e516c148..c81361a6 100644 --- a/server/increment.dc +++ b/server/increment.dc @@ -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; -- 2.45.2