Module Name: src
Committed By: christos
Date: Mon Oct 14 13:34:14 UTC 2019
Modified Files:
src/bin/sh: expand.c
Log Message:
remove masking and cast (requested by kre@)
To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/bin/sh/expand.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/expand.c
diff -u src/bin/sh/expand.c:1.135 src/bin/sh/expand.c:1.136
--- src/bin/sh/expand.c:1.135 Sun Oct 13 16:55:04 2019
+++ src/bin/sh/expand.c Mon Oct 14 09:34:14 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: expand.c,v 1.135 2019/10/13 20:55:04 christos Exp $ */
+/* $NetBSD: expand.c,v 1.136 2019/10/14 13:34:14 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)expand.c 8.5 (Berkeley) 5/15/95";
#else
-__RCSID("$NetBSD: expand.c,v 1.135 2019/10/13 20:55:04 christos Exp $");
+__RCSID("$NetBSD: expand.c,v 1.136 2019/10/14 13:34:14 christos Exp $");
#endif
#endif /* not lint */
@@ -268,8 +268,7 @@ argstr(const char *p, int flag)
return p - 1;
case CTLENDVAR: /* end of expanding yyy in ${xxx-yyy} */
case CTLENDARI: /* end of a $(( )) string */
- if (had_dol_at &&
- (*p & 0xff) == (unsigned char)CTLQUOTEEND)
+ if (had_dol_at && *p == CTLQUOTEEND)
p++;
NULLTERM_4_TRACE(expdest);
VTRACE(DBG_EXPAND, ("argstr returning at \"%.6s\"..."