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/8b2de0e00fbc
branches: trunk
changeset: 994762:8b2de0e00fbc
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 84359f3beae1 -r 8b2de0e00fbc 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