Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gzip Cast field width computed from pointer diff and...



details:   https://anonhg.NetBSD.org/src/rev/6f71c939975c
branches:  trunk
changeset: 569711:6f71c939975c
user:      he <he%NetBSD.org@localhost>
date:      Tue Aug 31 10:14:30 2004 +0000

description:
Cast field width computed from pointer diff and ssize_t to int.
Fixes build for amd64 and presumably for our other lp64 ports.

diffstat:

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

diffs (28 lines):

diff -r 91778a045187 -r 6f71c939975c usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c       Tue Aug 31 01:06:12 2004 +0000
+++ b/usr.bin/gzip/gzip.c       Tue Aug 31 10:14:30 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gzip.c,v 1.63 2004/08/30 14:36:51 dsl Exp $    */
+/*     $NetBSD: gzip.c,v 1.64 2004/08/31 10:14:30 he Exp $     */
 
 /*
  * Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green
@@ -32,7 +32,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green\n\
      All rights reserved.\n");
-__RCSID("$NetBSD: gzip.c,v 1.63 2004/08/30 14:36:51 dsl Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.64 2004/08/31 10:14:30 he Exp $");
 #endif /* not lint */
 
 /*
@@ -1284,7 +1284,8 @@
                                else
                                        dp++;
                                snprintf(outfile, outsize, "%.*s%.*s",
-                                               dp - file, file, rbytes, name);
+                                               (int) (dp - file), 
+                                               file, (int) rbytes, name);
                        }
                }
        }



Home | Main Index | Thread Index | Old Index