]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_clrbot.c
ncurses 6.2 - patch 20200829
[ncurses.git] / ncurses / base / lib_clrbot.c
index bc12960e48f0fc824a02df4b734af1e3afddb2c9..e5482b9e7341597c81d5570de867397f4723f929 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc.         *
+ * Copyright 2020 Thomas E. Dickey                                          *
+ * Copyright 1998-2006,2009 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            *
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_clrbot.c,v 1.19 2001/12/19 01:05:59 tom Exp $")
+MODULE_ID("$Id: lib_clrbot.c,v 1.22 2020/02/02 23:34:34 tom Exp $")
 
 NCURSES_EXPORT(int)
 wclrtobot(WINDOW *win)
 {
     int code = ERR;
 
-    T((T_CALLED("wclrtobot(%p)"), win));
+    T((T_CALLED("wclrtobot(%p)"), (void *) win));
 
     if (win) {
        NCURSES_SIZE_T y;
        NCURSES_SIZE_T startx = win->_curx;
        NCURSES_CH_T blank = win->_nc_bkgd;
 
-       T(("clearing from y = %d to y = %d with maxx =  %d",
-          win->_cury, win->_maxy, win->_maxx));
+       T(("clearing from y = %ld to y = %ld with maxx =  %ld",
+          (long) win->_cury, (long) win->_maxy, (long) win->_maxx));
 
        for (y = win->_cury; y <= win->_maxy; y++) {
            struct ldat *line = &(win->_line[y]);