Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh remove masking and cast (requested by kre@)



details:   https://anonhg.NetBSD.org/src/rev/1f53278efbf9
branches:  trunk
changeset: 455322:1f53278efbf9
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 14 13:34:14 2019 +0000

description:
remove masking and cast (requested by kre@)

diffstat:

 bin/sh/expand.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r c005381a43ac -r 1f53278efbf9 bin/sh/expand.c
--- a/bin/sh/expand.c   Mon Oct 14 13:18:00 2019 +0000
+++ b/bin/sh/expand.c   Mon Oct 14 13:34:14 2019 +0000
@@ -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 @@
                        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\"..."



Home | Main Index | Thread Index | Old Index