[Midnightbsd-cvs] src: wwgets.c:

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Mar 27 18:12:04 EDT 2009


Log Message:
-----------


Modified Files:
--------------
    src/usr.bin/window:
        wwgets.c (r1.1.1.1 -> r1.2)

-------------- next part --------------
Index: wwgets.c
===================================================================
RCS file: /home/cvs/src/usr.bin/window/wwgets.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -L usr.bin/window/wwgets.c -L usr.bin/window/wwgets.c -u -r1.1.1.1 -r1.2
--- usr.bin/window/wwgets.c
+++ usr.bin/window/wwgets.c
@@ -37,21 +37,27 @@
 #ifndef lint
 static char sccsid[] = "@(#)wwgets.c	8.1 (Berkeley) 6/6/93";
 static char rcsid[] =
-  "$FreeBSD: src/usr.bin/window/wwgets.c,v 1.5 2001/05/17 09:38:49 obrien Exp $";
+  "$FreeBSD: src/usr.bin/window/wwgets.c,v 1.6 2005/08/25 14:09:35 roberto Exp $";
 #endif /* not lint */
 
 #include "ww.h"
 #include "char.h"
 
-wwgets(buf, n, w)
-char *buf;
-int n;
-register struct ww *w;
+static void
+rub(unsigned char c, struct ww *w)
+{
+	int i;
+
+	for (i = isctrl(c) ? strlen(unctrl(c)) : 1; --i >= 0;)
+		(void) wwwrite(w, "\b \b", 3);
+}
+
+void
+wwgets(char *buf, int n, struct ww *w)
 {
 	register char *p = buf;
 	register int c;
 	char uc = w->ww_unctrl;
-	static void rub();
 
 	w->ww_unctrl = 0;
 	for (;;) {
@@ -102,13 +108,3 @@
 	*p = 0;
 	w->ww_unctrl = uc;
 }
-
-static void
-rub(c, w)
-struct ww *w;
-{
-	register i;
-
-	for (i = isctrl(c) ? strlen(unctrl(c)) : 1; --i >= 0;)
-		(void) wwwrite(w, "\b \b", 3);
-}


More information about the Midnightbsd-cvs mailing list