Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Fix lint nits mainly with the len parameter ty...
details: https://anonhg.NetBSD.org/src/rev/aad3d0cec335
branches: trunk
changeset: 538535:aad3d0cec335
user: blymn <blymn%NetBSD.org@localhost>
date: Tue Oct 22 11:37:34 2002 +0000
description:
Fix lint nits mainly with the len parameter type in hash_more.
diffstat:
lib/libcurses/color.c | 6 +++---
lib/libcurses/newwin.c | 8 ++++----
lib/libcurses/refresh.c | 6 +++---
lib/libcurses/resize.c | 8 ++++----
4 files changed, 14 insertions(+), 14 deletions(-)
diffs (126 lines):
diff -r 254cd15e034e -r aad3d0cec335 lib/libcurses/color.c
--- a/lib/libcurses/color.c Tue Oct 22 10:10:28 2002 +0000
+++ b/lib/libcurses/color.c Tue Oct 22 11:37:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: color.c,v 1.19 2002/08/04 16:43:07 jdc Exp $ */
+/* $NetBSD: color.c,v 1.20 2002/10/22 11:37:34 blymn Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: color.c,v 1.19 2002/08/04 16:43:07 jdc Exp $");
+__RCSID("$NetBSD: color.c,v 1.20 2002/10/22 11:37:34 blymn Exp $");
#endif /* not lint */
#include "curses.h"
@@ -411,7 +411,7 @@
* Set terminal foreground and background colours.
*/
void
-__set_color(WINDOW *win, attr_t attr)
+__set_color( /*ARGSUSED*/ WINDOW *win, attr_t attr)
{
short pair;
diff -r 254cd15e034e -r aad3d0cec335 lib/libcurses/newwin.c
--- a/lib/libcurses/newwin.c Tue Oct 22 10:10:28 2002 +0000
+++ b/lib/libcurses/newwin.c Tue Oct 22 11:37:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: newwin.c,v 1.29 2002/07/19 13:22:41 blymn Exp $ */
+/* $NetBSD: newwin.c,v 1.30 2002/10/22 11:37:34 blymn 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.29 2002/07/19 13:22:41 blymn Exp $");
+__RCSID("$NetBSD: newwin.c,v 1.30 2002/10/22 11:37:34 blymn Exp $");
#endif
#endif /* not lint */
@@ -128,7 +128,7 @@
sp->battr = 0;
}
lp->hash = __hash((char *)(void *)lp->line,
- (int) (ncols * __LDATASIZE));
+ (size_t) (ncols * __LDATASIZE));
}
return (win);
}
@@ -186,7 +186,7 @@
lp->firstchp = &olp->firstch;
lp->lastchp = &olp->lastch;
lp->hash = __hash((char *)(void *)lp->line,
- (int) (win->maxx * __LDATASIZE));
+ (size_t) (win->maxx * __LDATASIZE));
}
#ifdef DEBUG
diff -r 254cd15e034e -r aad3d0cec335 lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c Tue Oct 22 10:10:28 2002 +0000
+++ b/lib/libcurses/refresh.c Tue Oct 22 11:37:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: refresh.c,v 1.47 2002/08/04 16:43:08 jdc Exp $ */
+/* $NetBSD: refresh.c,v 1.48 2002/10/22 11:37:34 blymn Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)refresh.c 8.7 (Berkeley) 8/13/94";
#else
-__RCSID("$NetBSD: refresh.c,v 1.47 2002/08/04 16:43:08 jdc Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.48 2002/10/22 11:37:34 blymn Exp $");
#endif
#endif /* not lint */
@@ -241,7 +241,7 @@
wlp = win->lines[wy];
if (wlp->flags & __ISDIRTY)
wlp->hash = __hash((char *)(void *)wlp->line,
- (int) (win->maxx * __LDATASIZE));
+ (size_t) (win->maxx * __LDATASIZE));
}
if ((win->flags & __CLEAROK) || (curscr->flags & __CLEAROK) ||
diff -r 254cd15e034e -r aad3d0cec335 lib/libcurses/resize.c
--- a/lib/libcurses/resize.c Tue Oct 22 10:10:28 2002 +0000
+++ b/lib/libcurses/resize.c Tue Oct 22 11:37:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resize.c,v 1.3 2002/07/19 13:22:41 blymn Exp $ */
+/* $NetBSD: resize.c,v 1.4 2002/10/22 11:37:35 blymn Exp $ */
/*
* Copyright (c) 2001
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)resize.c blymn 2001/08/26";
#else
-__RCSID("$NetBSD: resize.c,v 1.3 2002/07/19 13:22:41 blymn Exp $");
+__RCSID("$NetBSD: resize.c,v 1.4 2002/10/22 11:37:35 blymn Exp $");
#endif
#endif /* not lint */
@@ -104,7 +104,7 @@
sp->battr = 0;
}
lp->hash = __hash((char *)(void *)lp->line,
- (int) (ncols * __LDATASIZE));
+ (size_t) (ncols * __LDATASIZE));
}
return OK;
@@ -257,7 +257,7 @@
lp->firstchp = &olp->firstch;
lp->lastchp = &olp->lastch;
lp->hash = __hash((char *)(void *)lp->line,
- (int) (win->maxx * __LDATASIZE));
+ (size_t) (win->maxx * __LDATASIZE));
lp->flags = __ISDIRTY;
}
}
Home |
Main Index |
Thread Index |
Old Index