Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/indent Pull up revision 1.10 (requested by is):



details:   https://anonhg.NetBSD.org/src/rev/c46b8300471e
branches:  netbsd-1-4
changeset: 471040:c46b8300471e
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 14:48:53 2000 +0000

description:
Pull up revision 1.10 (requested by is):
  The type of the difference between pointers is implementation-
  defined (long on sparc and int on most others).  Compensate when
  printing.

diffstat:

 usr.bin/indent/io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bbf6bd9a9bcf -r c46b8300471e usr.bin/indent/io.c
--- a/usr.bin/indent/io.c       Thu Oct 19 14:33:12 2000 +0000
+++ b/usr.bin/indent/io.c       Thu Oct 19 14:48:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: io.c,v 1.9 1998/12/19 17:00:08 christos Exp $  */
+/*     $NetBSD: io.c,v 1.9.2.1 2000/10/19 14:48:53 he Exp $    */
 
 /*
  * Copyright (c) 1980, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)io.c       8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: io.c,v 1.9 1998/12/19 17:00:08 christos Exp $");
+__RCSID("$NetBSD: io.c,v 1.9.2.1 2000/10/19 14:48:53 he Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -133,7 +133,7 @@
                                                s++;
                                        if (s < e_lab)
                                                fprintf(output, s[0] == '/' && s[1] == '*' ? "\t%.*s" : "\t/* %.*s */",
-                                                   e_lab - s, s);
+                                                   (int)(e_lab - s), s);
                                } else
                                        fprintf(output, "%.*s", (int)(e_lab - s_lab), s_lab);
                                cur_col = count_spaces(cur_col, s_lab);



Home | Main Index | Thread Index | Old Index