X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/146eea7d7398c7a41ce9fab02ea8efee39b47a26..2c872e05abde7665fd7d24427d1317995fe97d2f:/usr.bin/window/wwunframe.c diff --git a/usr.bin/window/wwunframe.c b/usr.bin/window/wwunframe.c index 34be86102c..0f9d4d3f8e 100644 --- a/usr.bin/window/wwunframe.c +++ b/usr.bin/window/wwunframe.c @@ -1,3 +1,6 @@ +/* @(#)wwunframe.c 8.1 (Berkeley) 6/6/93 */ +/* $NetBSD: wwunframe.c,v 1.7 2003/08/07 11:17:46 agc Exp $ */ + /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -13,11 +16,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -32,25 +31,21 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * @(#)wwunframe.c 8.1 (Berkeley) 6/6/93 - * $FreeBSD: src/usr.bin/window/wwunframe.c,v 1.1.1.1.14.1 2001/05/17 09:45:02 obrien Exp $ - * $DragonFly: src/usr.bin/window/wwunframe.c,v 1.2 2003/06/17 04:29:34 dillon Exp $ */ #include "ww.h" -wwunframe(w) -register struct ww *w; +void +wwunframe(struct ww *w) { int i; for (i = w->ww_i.t; i < w->ww_i.b; i++) { - register j; - register char *win = w->ww_win[i]; - register char *fmap = w->ww_fmap ? w->ww_fmap[i] : 0; - register char *smap = wwsmap[i]; - register union ww_char *ns = wwns[i]; + int j; + char *win = w->ww_win[i]; + char *fmap = w->ww_fmap ? w->ww_fmap[i] : 0; + unsigned char *smap = wwsmap[i]; + union ww_char *ns = wwns[i]; int nchanged = 0; for (j = w->ww_i.l; j < w->ww_i.r; j++) {