Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Silence casts



details:   https://anonhg.NetBSD.org/src/rev/1f01e1182b6f
branches:  trunk
changeset: 473946:1f01e1182b6f
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 23 03:26:02 1999 +0000

description:
Silence casts

diffstat:

 lib/libcurses/newwin.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 4233aba2329b -r 1f01e1182b6f lib/libcurses/newwin.c
--- a/lib/libcurses/newwin.c    Wed Jun 23 01:58:22 1999 +0000
+++ b/lib/libcurses/newwin.c    Wed Jun 23 03:26:02 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newwin.c,v 1.11 1999/04/22 22:39:09 mycroft Exp $      */
+/*     $NetBSD: newwin.c,v 1.12 1999/06/23 03:26:02 christos Exp $     */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)newwin.c   8.3 (Berkeley) 7/27/94";
 #else
-__RCSID("$NetBSD: newwin.c,v 1.11 1999/04/22 22:39:09 mycroft Exp $");
+__RCSID("$NetBSD: newwin.c,v 1.12 1999/06/23 03:26:02 christos Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -89,7 +89,8 @@
                        sp->ch = ' ';
                        sp->attr = 0;
                }
-               lp->hash = __hash((char *) lp->line, (int) (nc * __LDATASIZE));
+               lp->hash = __hash((char *)(void *)lp->line,
+                   (int) (nc * __LDATASIZE));
        }
        return (win);
 }
@@ -145,7 +146,8 @@
                lp->line = &olp->line[win->begx - orig->begx];
                lp->firstchp = &olp->firstch;
                lp->lastchp = &olp->lastch;
-               lp->hash = __hash((char *) lp->line, (int) (win->maxx * __LDATASIZE));
+               lp->hash = __hash((char *)(void *)lp->line,
+                   (int) (win->maxx * __LDATASIZE));
        }
 
 #ifdef DEBUG



Home | Main Index | Thread Index | Old Index