]> andersk Git - moira.git/blobdiff - server/increment.dc
increase Argv[] size to match QMAXARGS
[moira.git] / server / increment.dc
index 555ed7e8a4ddee1a404a3968583d3d38929640ae..ec994fb314420899b9557dbf736c95d7447f88ed 100644 (file)
@@ -233,7 +233,6 @@ char **argv;
 {
     char buffer[2048], *name;
 EXEC SQL BEGIN DECLARE SECTION; 
-    char *type;
     int id, i;
 EXEC SQL END DECLARE SECTION; 
     struct iupdate *iu;
@@ -287,12 +286,8 @@ EXEC SQL END DECLARE SECTION;
        strcpy(aarg0, "?");
        strcpy(aarg1, argv[1]);
        strcpy(aarg2, "?");
-       if (!strcmp(argv[1], "ANY"))
-         type = "NONE";
-       else
-         type = argv[1];
        sprintf(buffer, "%s and fs.filsys_id = q.filsys_id and q.type = '%s'",
-               qual, type);
+               qual, argv[1]);
        qual = buffer;
        EXEC SQL SELECT CHAR(q.quota), fs.name INTO :aarg3, :aarg4
          FROM quota q, filesys fs WHERE :qual;
This page took 0.054158 seconds and 4 git commands to generate.