diff options
author | delphij <delphij@FreeBSD.org> | 2014-02-28 19:12:44 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-02-28 19:12:44 +0000 |
commit | 084d7341e201b5153031223070580cfac88a038a (patch) | |
tree | b8f6e12b479a78216f3bffb8e1258d54087268de /ncurses/base/lib_touch.c | |
parent | 57da9bc8831dabeaf0cff586fbd536851530a22d (diff) | |
download | FreeBSD-src-084d7341e201b5153031223070580cfac88a038a.zip FreeBSD-src-084d7341e201b5153031223070580cfac88a038a.tar.gz |
Undo two previous imports which was never done in preparation of doing a
new import.
Diffstat (limited to 'ncurses/base/lib_touch.c')
-rw-r--r-- | ncurses/base/lib_touch.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ncurses/base/lib_touch.c b/ncurses/base/lib_touch.c index 8023c70..2ac21f2 100644 --- a/ncurses/base/lib_touch.c +++ b/ncurses/base/lib_touch.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998,2000 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -43,12 +43,12 @@ #include <curses.priv.h> -MODULE_ID("$Id: lib_touch.c,v 1.11 2010/12/19 01:22:58 tom Exp $") +MODULE_ID("$Id: lib_touch.c,v 1.9 2000/12/10 02:43:27 tom Exp $") NCURSES_EXPORT(bool) is_linetouched(WINDOW *win, int line) { - T((T_CALLED("is_linetouched(%p,%d)"), (void *) win, line)); + T((T_CALLED("is_linetouched(%p,%d)"), win, line)); /* XSI doesn't define any error */ if (!win || (line > win->_maxy) || (line < 0)) @@ -62,7 +62,7 @@ is_wintouched(WINDOW *win) { int i; - T((T_CALLED("is_wintouched(%p)"), (void *) win)); + T((T_CALLED("is_wintouched(%p)"), win)); if (win) for (i = 0; i <= win->_maxy; i++) @@ -76,7 +76,7 @@ wtouchln(WINDOW *win, int y, int n, int changed) { int i; - T((T_CALLED("wtouchln(%p,%d,%d,%d)"), (void *) win, y, n, changed)); + T((T_CALLED("wtouchln(%p,%d,%d,%d)"), win, y, n, changed)); if (!win || (n < 0) || (y < 0) || (y > win->_maxy)) returnCode(ERR); @@ -85,9 +85,7 @@ wtouchln(WINDOW *win, int y, int n, int changed) if (i > win->_maxy) break; win->_line[i].firstchar = changed ? 0 : _NOCHANGE; - win->_line[i].lastchar = (NCURSES_SIZE_T) (changed - ? win->_maxx - : _NOCHANGE); + win->_line[i].lastchar = changed ? win->_maxx : _NOCHANGE; } returnCode(OK); } |