Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Don't bother testing if a uint8_t is > 256 -- ...



details:   https://anonhg.NetBSD.org/src/rev/d6daa8b63a68
branches:  trunk
changeset: 526711:d6daa8b63a68
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu May 09 02:44:39 2002 +0000

description:
Don't bother testing if a uint8_t is > 256 -- that test is always false.

diffstat:

 sys/lib/libsa/ufs_ls.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 373a08d0a426 -r d6daa8b63a68 sys/lib/libsa/ufs_ls.c
--- a/sys/lib/libsa/ufs_ls.c    Thu May 09 02:36:57 2002 +0000
+++ b/sys/lib/libsa/ufs_ls.c    Thu May 09 02:44:39 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_ls.c,v 1.1 1999/04/14 11:32:50 drochner Exp $       */
+/*     $NetBSD: ufs_ls.c,v 1.2 2002/05/09 02:44:39 simonb Exp $         */
 
 /*
  * Copyright (c) 1993
@@ -93,7 +93,7 @@
                        if (dp->d_ino != (ino_t) 0) {
                                char           *t;
 
-                               if ((dp->d_namlen > MAXNAMLEN + 1) ||
+                               if (/* (dp->d_namlen > MAXNAMLEN + 1) || */
                                    (dp->d_type >
                                      sizeof(typestr) / sizeof(char *) - 1) ||
                                    !(t = typestr[dp->d_type])) {



Home | Main Index | Thread Index | Old Index