src-filters: Add missing includes, reduce warnings
authorPhilipp Hachtmann <hachti@hachti.de>
Tue, 17 May 2016 11:53:47 +0000 (13:53 +0200)
committerPhilipp Hachtmann <hachti@hachti.de>
Tue, 17 May 2016 11:53:47 +0000 (13:53 +0200)
Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
pc-tools/src-filters/Makefile
pc-tools/src-filters/load.c
pc-tools/src-filters/paroff.c
pc-tools/src-filters/paron.c
pc-tools/src-filters/tab.c
pc-tools/src-filters/turn.c
pc-tools/src-filters/zstrip.c

index e0140cb84cabbb67a9c5aa6ec39af05e01c0b4e5..dd139db5715c36c0d29060080fe894b3a60f56c1 100644 (file)
@@ -1,6 +1,7 @@
 PROGS=paron paroff load turn zstrip tab
 
 default: $(PROGS)
+CFLAGS=-Wall
 
 clean:
        @rm -f $(PROGS)
index 1bedea334195b8728780e4245d56fb5905469647..4beb6a5b7c21180171809acc666d807e09408c59 100644 (file)
@@ -7,7 +7,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <stdlib.h>
-
+#include <unistd.h>
 
 struct termios orgstate;
 struct termios workstate;
index e0dac8c76898b0c5e64c27d8679a1aa665cc7dd9..bb66ee0fb83d1f8bd2174c5359e329a14aa809ca 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <math.h>
 #include <string.h>
+#include <unistd.h>
 
 #define BUF_SIZ 100000
 #define LINE_LENGTH 72
index f69eb9ef899fe61d737cd6072a65c5eb7dc3f3fd..fe38d9ac63e7c90cd5bfb8faed976ab788c2addf 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <math.h>
 #include <string.h>
+#include <unistd.h>
 
 #define BUF_SIZ 100000
 #define LINE_LENGTH 72
index b8253a3996f3ad5ccd578d06ea225cb07dcac062..982b6796ba5bc7fd049cd95fec7a7f65c84fff76 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <unistd.h>
 
 /*
  * This program does two things:
index a0c446e34e086543a283aa1942a8189d090745b0..11eb9ef731151753f00c74915ddc9b9920cf390a 100644 (file)
@@ -5,6 +5,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #define BUFFER_SIZE 1000000
 
index eba69b10634496590c74e10c0da2ba8b813f01d9..15141b81b6244930a4e37bfce61bd77775002015 100644 (file)
@@ -3,6 +3,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdlib.h>
+#include <unistd.h>
 
     #define MAX_SIZE 1000000