Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Drop bogus cast.



details:   https://anonhg.NetBSD.org/src/rev/1bc9a463b821
branches:  trunk
changeset: 446028:1bc9a463b821
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Nov 20 21:42:52 2018 +0000

description:
Drop bogus cast.

diffstat:

 lib/libcurses/cchar.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8de5cc80e8a6 -r 1bc9a463b821 lib/libcurses/cchar.c
--- a/lib/libcurses/cchar.c     Tue Nov 20 21:41:31 2018 +0000
+++ b/lib/libcurses/cchar.c     Tue Nov 20 21:42:52 2018 +0000
@@ -1,4 +1,4 @@
-/*   $NetBSD: cchar.c,v 1.8 2018/11/20 21:41:31 uwe Exp $ */
+/*   $NetBSD: cchar.c,v 1.9 2018/11/20 21:42:52 uwe Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: cchar.c,v 1.8 2018/11/20 21:41:31 uwe Exp $");
+__RCSID("$NetBSD: cchar.c,v 1.9 2018/11/20 21:42:52 uwe Exp $");
 #endif                                           /* not lint */
 
 #include <string.h>
@@ -74,7 +74,7 @@
                        *color_pair = PAIR_NUMBER(wcval->attributes);
                else
                        *color_pair = 0;
-               wmemcpy(wch, wcval->vals, (unsigned)len);
+               wmemcpy(wch, wcval->vals, len);
                wch[len] = L'\0';
        }
        return OK;



Home | Main Index | Thread Index | Old Index