Silence warnings and rearrange the includes a bit.
authorSascha Wildner <saw@online.de>
Fri, 12 Dec 2008 09:16:38 +0000 (10:16 +0100)
committerSascha Wildner <saw@online.de>
Fri, 12 Dec 2008 09:16:38 +0000 (10:16 +0100)
19 files changed:
usr.bin/window/compress.c
usr.bin/window/context.c
usr.bin/window/lcmd1.c
usr.bin/window/lcmd2.c
usr.bin/window/scanner.c
usr.bin/window/startup.c
usr.bin/window/string.c
usr.bin/window/ttoutput.c
usr.bin/window/tttermcap.c
usr.bin/window/ttzapple.c
usr.bin/window/var.c
usr.bin/window/wwdump.c
usr.bin/window/wwend.c
usr.bin/window/wwenviron.c
usr.bin/window/wwflush.c
usr.bin/window/wwinit.c
usr.bin/window/wwpty.c
usr.bin/window/wwspawn.c
usr.bin/window/xx.c

index cb08155..3371f0b 100644 (file)
  * $DragonFly: src/usr.bin/window/compress.c,v 1.2 2003/06/17 04:29:33 dillon Exp $
  */
 
-#include "ww.h"
-#include "tt.h"
-
        /* special */
 #include <stdio.h>
 #include <fcntl.h>
 #include <stdlib.h>
+#include <string.h>
+
+#include "ww.h"
+#include "tt.h"
+
 int cc_trace = 0;
 FILE *cc_trace_fp;
 
index fcc0479..97ee409 100644 (file)
  * $DragonFly: src/usr.bin/window/context.c,v 1.4 2005/04/15 17:55:29 drhodus Exp $
  */
 
+#include <fcntl.h>
+#include <stdlib.h>
+
 #include "value.h"
 #include "mystring.h"
 #include "context.h"
-#include <fcntl.h>
 
 /*
  * Context push/pop for nested command files.
index 3614c65..3e03ede 100644 (file)
  * $DragonFly: src/usr.bin/window/lcmd1.c,v 1.4 2005/04/15 17:55:29 drhodus Exp $
  */
 
-#include "defs.h"
+#include <stdio.h>
 #include <string.h> /* System string definitions. */
+
+#include "defs.h"
 #include "mystring.h" /* Local string definitions. */
 #include "value.h"
 #include "lcmd.h"
index 347ec19..608a8b3 100644 (file)
  * $DragonFly: src/usr.bin/window/lcmd2.c,v 1.4 2005/04/15 17:55:29 drhodus Exp $
  */
 
-#include "defs.h"
+#include <sys/types.h>
+#include <sys/resource.h>
+
+#include <stdio.h>
 #include <string.h> /* System string definitions. */
+
+#include "defs.h"
 #include "mystring.h" /* Local string definitions. */
 #include "value.h"
 #include "var.h"
 #include "lcmd.h"
 #include "alias.h"
-#include <sys/types.h>
-#include <sys/resource.h>
 
 /*ARGSUSED*/
 l_iostat(v, a)
index 915215b..145c7ea 100644 (file)
@@ -39,6 +39,8 @@
  */
 
 #include <ctype.h>
+#include <stdlib.h>
+
 #include "value.h"
 #include "token.h"
 #include "context.h"
index 8eab393..0450c81 100644 (file)
@@ -38,6 +38,8 @@
  * $DragonFly: src/usr.bin/window/startup.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <stdio.h>
+
 #include "defs.h"
 #include "value.h"
 #include "var.h"
index ac7e0c2..dbce1f8 100644 (file)
  * $DragonFly: src/usr.bin/window/string.c,v 1.3 2005/02/28 13:57:05 joerg Exp $
  */
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <string.h> /* System string definitions. */
+
 #include "mystring.h" /* Local string definitions. */
 
 char *
index d5c72a5..111e0ac 100644 (file)
  * $DragonFly: src/usr.bin/window/ttoutput.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <errno.h>
+#include <string.h>
+
 #include "ww.h"
 #include "tt.h"
-#include <errno.h>
 
 /*
  * Buffered output package.
index 516b02a..a39fc1b 100644 (file)
@@ -38,6 +38,8 @@
  * $DragonFly: src/usr.bin/window/tttermcap.c,v 1.3 2005/02/28 13:57:05 joerg Exp $
  */
 
+#include <stdlib.h>
+
 #include "tt.h"
 
 char *tgetstr();
index 61bd5d0..c2b6d4c 100644 (file)
@@ -38,6 +38,8 @@
  * $DragonFly: src/usr.bin/window/ttzapple.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <stdio.h>
+
 #include "ww.h"
 #include "tt.h"
 #include "char.h"
index 355b863..1c30fda 100644 (file)
@@ -38,6 +38,8 @@
  * $DragonFly: src/usr.bin/window/var.c,v 1.3 2005/02/28 13:57:05 joerg Exp $
  */
 
+#include <stdlib.h>
+
 #include "value.h"
 #include "var.h"
 #include "mystring.h"
index ae53ea7..734f61c 100644 (file)
@@ -38,7 +38,9 @@
  * $DragonFly: src/usr.bin/window/wwdump.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <stdio.h>
 #include <string.h>
+
 #include "ww.h"
 #include "tt.h"
 
index 80258d3..2aec04e 100644 (file)
@@ -39,6 +39,8 @@
  */
 
 #include <signal.h>
+#include <stdlib.h>
+
 #include "ww.h"
 #include "tt.h"
 
index 0a234a0..ac0648c 100644 (file)
  * $DragonFly: src/usr.bin/window/wwenviron.c,v 1.3 2006/01/12 13:43:11 corecode Exp $
  */
 
+#include <stdio.h>
+
 #include "ww.h"
+
 #if !defined(OLD_TTY) && !defined(TIOCSCTTY) && !defined(TIOCNOTTY)
 #include <sys/ioctl.h>
 #endif
index f125e37..0373e74 100644 (file)
  * $DragonFly: src/usr.bin/window/wwflush.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <signal.h>
+#include <string.h>
+
 #include "ww.h"
 #include "tt.h"
-#include <signal.h>
 
 wwflush()
 {
index c490a8b..4903183 100644 (file)
  * $DragonFly: src/usr.bin/window/wwinit.c,v 1.3 2006/01/12 13:43:11 corecode Exp $
  */
 
-#include "ww.h"
-#include "tt.h"
 #include <signal.h>
 #include <fcntl.h>
+#include <stdio.h>
 #include <termcap.h>
+
+#include "ww.h"
+#include "tt.h"
 #include "char.h"
 
 wwinit()
index ee22475..de66ebb 100644 (file)
  * $DragonFly: src/usr.bin/window/wwpty.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
-#include "ww.h"
 #include <fcntl.h>
+#include <string.h>
+
+#include "ww.h"
+
 #if !defined(OLD_TTY) && !defined(TIOCPKT)
 #include <sys/ioctl.h>
 #endif
index 79f74ff..e1df53e 100644 (file)
  * $DragonFly: src/usr.bin/window/wwspawn.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
-#include "ww.h"
 #include <signal.h>
+#include <unistd.h>
+
+#include "ww.h"
 
 /*
  * There is a dead lock with vfork and closing of pseudo-ports.
index 809bffa..1de9abb 100644 (file)
  * $DragonFly: src/usr.bin/window/xx.c,v 1.2 2003/06/17 04:29:34 dillon Exp $
  */
 
+#include <stdlib.h>
+#include <string.h>
+
 #include "ww.h"
 #include "xx.h"
 #include "tt.h"
-#include <stdlib.h>
 
 xxinit()
 {