chiark / gitweb /
@@@ misc mess
[mLib] / test / tvec-timeout.c
index f2c92087f9fa3fb3c9f4c22ed64a92f3ed315d60..f1b0b0c3ef373165a8acb056378445e999ca746a 100644 (file)
@@ -107,10 +107,10 @@ static int setvar(struct tvec_state *tv, const char *var,
   struct tvec_timeoutctx *tc = ctx;
 
   if (STRCMP(var, ==, "@timeout")) {
-    if (tc->f&TVTF_SETTMO) return (tvec_dupreg(tv, var));
+    if (tc->f&TVTF_SETTMO) return (tvec_dupregerr(tv, var));
     tc->t = rv->f; tc->f |= TVTF_SETTMO;
   } else if (STRCMP(var, ==, "@timer")) {
-    if (tc->f&TVTF_SETTMR) return (tvec_dupreg(tv, var));
+    if (tc->f&TVTF_SETTMR) return (tvec_dupregerr(tv, var));
     tc->timer = rv->i; tc->f |= TVTF_SETTMR;
   } else assert(!"unknown var");
   return (0);