lint
[unix-history] / usr / src / usr.bin / window / tth29.c
index 4bdda2f..5a48fbe 100644 (file)
@@ -1,13 +1,24 @@
-#ifndef lint
-static char sccsid[] = "@(#)tth29.c    3.4 %G%";
-#endif
-
 /*
 /*
- * Copyright (c) 1983 Regents of the University of California,
- * All rights reserved.  Redistribution permitted subject to
- * the terms of the Berkeley Software License Agreement.
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
  */
 
+#ifndef lint
+static char sccsid[] = "@(#)tth29.c    3.7 (Berkeley) %G%";
+#endif /* not lint */
+
 #include "ww.h"
 #include "tt.h"
 
 #include "ww.h"
 #include "tt.h"
 
@@ -27,8 +38,8 @@ kC|h29|heath-29|z29|zenith-29:\
  *
  */
 
  *
  */
 
-#define pc(c)  ttputc('c')
-#define esc()  pc(\033)
+#define pc(c)  ttputc(c)
+#define esc()  pc('\033')
 
 h29_setmodes(new)
 register new;
 
 h29_setmodes(new)
 register new;
@@ -46,14 +57,14 @@ register new;
        if (new & WWM_USR)
                modes += 0x10;
        esc();
        if (new & WWM_USR)
                modes += 0x10;
        esc();
-       pc(s);
-       ttputc(modes);
+       pc('s');
+       pc(modes);
        if (new & WWM_GRP) {
                if ((tt.tt_modes & WWM_GRP) == 0)
        if (new & WWM_GRP) {
                if ((tt.tt_modes & WWM_GRP) == 0)
-                       esc(), pc(F);
+                       esc(), pc('F');
        } else
                if (tt.tt_modes & WWM_GRP)
        } else
                if (tt.tt_modes & WWM_GRP)
-                       esc(), pc(G);
+                       esc(), pc('G');
        tt.tt_modes = new;
 }
 
        tt.tt_modes = new;
 }