]> andersk Git - moira.git/commitdiff
replace set_mach_modtime with set_uppercase_modtime
authormar <mar>
Mon, 3 Oct 1988 15:33:07 +0000 (15:33 +0000)
committermar <mar>
Mon, 3 Oct 1988 15:33:07 +0000 (15:33 +0000)
server/qsupport.qc

index 0aba3b1fff843a3d1459d3166a270bdb28ff70b6..f7a0aeb494f107f20addc6796c9bc11f7a5b1c3e 100644 (file)
@@ -891,25 +891,24 @@ set_pobox_modtime(q, argv, cl)
 ##}
 
 
-/* Sets the modtime on a machine record.  The machine name is in argv[0].
- * This routine is different from the generic set_modtime in that the
- * name is uppercased first.
+/* Like set_modtime, but uppercases the name first.
  */
 
-set_mach_modtime(q, argv, cl)
+set_uppercase_modtime(q, argv, cl)
     struct query *q;
     char **argv;
     client *cl;
 ##{
-##  char *host, *entity;
+##  char *name, *entity, *table;
 ##  int who;
 
     entity = cl->entity;
     who = cl->users_id;
+    table = q->rtable;
+    name = argv[0];
 
-    host = argv[0];
-##  repeat replace m (modtime = "now", modby = @who, modwith = @entity)
-##      where m.name = uppercase(@host)
+##  replace table (modtime = "now", modby = who, modwith = entity)
+##      where table.#name = uppercase(name)
     return(SMS_SUCCESS);
 ##}
 
This page took 0.582705 seconds and 5 git commands to generate.