@@@ misc mess
[mLib] / test / tvec-remote.c
index 3c25282..3087d1b 100644 (file)
@@ -700,7 +700,7 @@ int tvec_remoteserver(int infd, int outfd, const struct tvec_config *config)
                vd = env->findvar(&srvtv, d.buf, &varctx, ctx);
                  if (vd) goto found_var;
              }
-             rc = tvec_unkreg(&srvtv, d.buf); goto setvar_end;
+             rc = tvec_unkregerr(&srvtv, d.buf); goto setvar_end;
            found_var:
 
              /* Set up the register. */
@@ -1929,15 +1929,15 @@ static int setvar_local(struct tvec_state *tv, const char *var,
   struct tvec_remotectx *r = ctx;
 
   if (STRCMP(var, ==, "@exit")) {
-    if (r->rc.f&TVRF_SETEXIT) return (tvec_dupreg(tv, var));
+    if (r->rc.f&TVRF_SETEXIT) return (tvec_dupregerr(tv, var));
     r->exwant = rv->u; r->rc.f |= TVRF_SETEXIT; return (0);
   } else if (STRCMP(var, ==, "@progress")) {
-    if (r->rc.f&TVRF_SETPRG) return (tvec_dupreg(tv, var));
+    if (r->rc.f&TVRF_SETPRG) return (tvec_dupregerr(tv, var));
     DRESET(&r->prgwant); DPUTM(&r->prgwant, rv->text.p, rv->text.sz);
     DPUTZ(&r->prgwant);
     r->rc.f |= TVRF_SETPRG; return (0);
   } else if (STRCMP(var, ==, "@reconnect")) {
-    if (r->rc.f&TVRF_SETRCN) return (tvec_dupreg(tv, var));
+    if (r->rc.f&TVRF_SETRCN) return (tvec_dupregerr(tv, var));
     r->rc.f = (r->rc.f&~TVRF_RCNMASK) | (rv->u&TVRF_RCNMASK) | TVRF_SETRCN;
     return (0);
   } else assert(!"unknown var");