Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit/TEST cast gotsig because it is long on some syst...



details:   https://anonhg.NetBSD.org/src/rev/74353de49ef4
branches:  trunk
changeset: 330046:74353de49ef4
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 18 20:12:15 2014 +0000

description:
cast gotsig because it is long on some systems.

diffstat:

 lib/libedit/TEST/tc1.c  |  6 +++---
 lib/libedit/TEST/wtc1.c |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 153be588524e -r 74353de49ef4 lib/libedit/TEST/tc1.c
--- a/lib/libedit/TEST/tc1.c    Wed Jun 18 19:50:32 2014 +0000
+++ b/lib/libedit/TEST/tc1.c    Wed Jun 18 20:12:15 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tc1.c,v 1.5 2010/04/18 21:17:47 christos Exp $ */
+/*     $NetBSD: tc1.c,v 1.6 2014/06/18 20:12:15 christos Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)test.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: tc1.c,v 1.5 2010/04/18 21:17:47 christos Exp $");
+__RCSID("$NetBSD: tc1.c,v 1.6 2014/06/18 20:12:15 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -189,7 +189,7 @@
 
 #endif
                if (gotsig) {
-                       (void) fprintf(stderr, "Got signal %d.\n", gotsig);
+                       (void) fprintf(stderr, "Got signal %d.\n", (int)gotsig);
                        gotsig = 0;
                        el_reset(el);
                }
diff -r 153be588524e -r 74353de49ef4 lib/libedit/TEST/wtc1.c
--- a/lib/libedit/TEST/wtc1.c   Wed Jun 18 19:50:32 2014 +0000
+++ b/lib/libedit/TEST/wtc1.c   Wed Jun 18 20:12:15 2014 +0000
@@ -170,7 +170,7 @@
 #endif
 
                if (gotsig) {
-                       (void)fprintf(stderr, "Got signal %d.\n", gotsig);
+                       (void)fprintf(stderr, "Got signal %d.\n", (int)gotsig);
                        gotsig = 0;
                        el_reset(el);
                }



Home | Main Index | Thread Index | Old Index