Source-Changes-HG archive

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

[src/trunk]: src/bin/cat Skip a check that is always true if _LP64 is defined.



details:   https://anonhg.NetBSD.org/src/rev/fcbce88361e5
branches:  trunk
changeset: 526706:fcbce88361e5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 09 02:07:38 2002 +0000

description:
Skip a check that is always true if _LP64 is defined.

diffstat:

 bin/cat/cat.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 50bac2832f6a -r fcbce88361e5 bin/cat/cat.c
--- a/bin/cat/cat.c     Thu May 09 01:58:39 2002 +0000
+++ b/bin/cat/cat.c     Thu May 09 02:07:38 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cat.c,v 1.28 2001/09/16 12:12:13 wiz Exp $ */
+/* $NetBSD: cat.c,v 1.29 2002/05/09 02:07:38 thorpej Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)cat.c      8.2 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: cat.c,v 1.28 2001/09/16 12:12:13 wiz Exp $");
+__RCSID("$NetBSD: cat.c,v 1.29 2002/05/09 02:07:38 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -280,7 +280,9 @@
        wfd = fileno(stdout);
        if (buf == NULL) {
                if (fstat(wfd, &sbuf) == 0) {
+#ifndef _LP64
                        bsize = MIN(sbuf.st_blksize, SSIZE_MAX);
+#endif
                        bsize = MAX(bsize, BUFSIZ);
                        buf = malloc(bsize);
                }



Home | Main Index | Thread Index | Old Index