@@ -267,9 +267,6 @@ struct var *setvareq(char *s, int flags)
n);
}
- if (flags & VNOSET)
- goto out;
-
if (vp->func && (flags & VNOFUNC) == 0)
(*vp->func)(varnull(s));
@@ -291,8 +288,6 @@ out_free:
flags |= vp->flags & bits;
} else {
- if (flags & VNOSET)
- goto out;
if ((flags & (VEXPORT|VREADONLY|VSTRFIXED|VUNSET)) == VUNSET)
goto out_free;
/* not found */
@@ -48,7 +48,7 @@
#define VSTACK 0x10 /* text is allocated on the stack */
#define VUNSET 0x20 /* the variable is not set */
#define VNOFUNC 0x40 /* don't call the callback function */
-#define VNOSET 0x80 /* do not set variable - just readonly test */
+/* #define VNOSET 0x80 do not set variable - just readonly test */
#define VNOSAVE 0x100 /* when text is on the heap before setvareq */
The bit VNOSET is no longer used. Remove it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>