Fix lint nits mainly with the len parameter type in hash_more.

This commit is contained in:
blymn 2002-10-22 11:37:34 +00:00
parent 869f4a9733
commit d5dc62cbd8
4 changed files with 14 additions and 14 deletions

View File

@ -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 @@ assume_default_colors(short fore, short back)
* Set terminal foreground and background colours.
*/
void
__set_color(WINDOW *win, attr_t attr)
__set_color( /*ARGSUSED*/ WINDOW *win, attr_t attr)
{
short pair;

View File

@ -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 @@ __newwin(SCREEN *screen, int nlines, int ncols, int by, int bx)
sp->battr = 0;
}
lp->hash = __hash((char *)(void *)lp->line,
(int) (ncols * __LDATASIZE));
(size_t) (ncols * __LDATASIZE));
}
return (win);
}
@ -186,7 +186,7 @@ __set_subwin(WINDOW *orig, WINDOW *win)
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

View File

@ -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 @@ doupdate(void)
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) ||

View File

@ -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 @@ wresize(WINDOW *win, int nlines, int ncols)
sp->battr = 0;
}
lp->hash = __hash((char *)(void *)lp->line,
(int) (ncols * __LDATASIZE));
(size_t) (ncols * __LDATASIZE));
}
return OK;
@ -257,7 +257,7 @@ __resizewin(WINDOW *win, int nlines, int ncols)
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;
}
}