Source-Changes-HG archive

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

[src/trunk]: src bitmask operation audit (s/&&/&/). from openbsd



details:   https://anonhg.NetBSD.org/src/rev/f01cccff41d8
branches:  trunk
changeset: 535020:f01cccff41d8
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Aug 08 15:12:09 2002 +0000

description:
bitmask operation audit (s/&&/&/).  from openbsd

diffstat:

 crypto/dist/ssh/sshconnect1.c            |  4 ++--
 gnu/dist/groff/src/preproc/pic/object.cc |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 10e4907e3aee -r f01cccff41d8 crypto/dist/ssh/sshconnect1.c
--- a/crypto/dist/ssh/sshconnect1.c     Thu Aug 08 15:10:51 2002 +0000
+++ b/crypto/dist/ssh/sshconnect1.c     Thu Aug 08 15:12:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sshconnect1.c,v 1.20 2002/06/24 05:48:39 itojun Exp $  */
+/*     $NetBSD: sshconnect1.c,v 1.21 2002/08/08 15:12:42 itojun Exp $  */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -252,7 +252,7 @@
         * load the private key.  Try first with empty passphrase; if it
         * fails, ask for a passphrase.
         */
-       if (public->flags && KEY_FLAG_EXT)
+       if (public->flags & KEY_FLAG_EXT)
                private = public;
        else
                private = key_load_private_type(KEY_RSA1, authfile, "", NULL);
diff -r 10e4907e3aee -r f01cccff41d8 gnu/dist/groff/src/preproc/pic/object.cc
--- a/gnu/dist/groff/src/preproc/pic/object.cc  Thu Aug 08 15:10:51 2002 +0000
+++ b/gnu/dist/groff/src/preproc/pic/object.cc  Thu Aug 08 15:12:09 2002 +0000
@@ -1098,7 +1098,7 @@
   // No need to look at at since `at' attribute sets `from' attribute.
   position startpos = (flags & HAS_FROM) ? from : *curpos;
   if (!(flags & HAS_SEGMENT)) {
-    if ((flags && IS_SAME) && have_last_move)
+    if ((flags & IS_SAME) && have_last_move)
       segment_pos = last_move;
     else {
       switch (dir) {



Home | Main Index | Thread Index | Old Index