boot-maker: Fix warnings (missing header file)
authorPhilipp Hachtmann <hachti@hachti.de>
Tue, 17 May 2016 11:40:38 +0000 (13:40 +0200)
committerPhilipp Hachtmann <hachti@hachti.de>
Tue, 17 May 2016 11:40:38 +0000 (13:40 +0200)
Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
pc-tools/boot-maker/Makefile
pc-tools/boot-maker/main.c

index b216c8f4e353609ae839da111f1cf938ec616ce2..51b798225dcd2ff62239ee2f4939145194988f56 100644 (file)
@@ -1,7 +1,9 @@
 default: bmaker
 
 default: bmaker
 
+CFLAGS=-Wall
+
 bmaker: main.c
 bmaker: main.c
-       gcc  -o $@ $<
+       gcc ${CFLAGS} -o $@ $<
 
 clean:
        @rm -f *.o bmaker 
 
 clean:
        @rm -f *.o bmaker 
index 721efaec6f3bcc3a9a3766ed05077eadd4b59dc0..0ac9f31dc5ea399b2e50c0d5709d145d4cf9213b 100644 (file)
@@ -1,11 +1,10 @@
 #include <stdio.h>
 #include <stdio.h>
-
+#include <unistd.h>
 
 void output(unsigned short * data){
     int c;
     char zero=0;
     unsigned char first_word=020;
 
 void output(unsigned short * data){
     int c;
     char zero=0;
     unsigned char first_word=020;
-    unsigned short akt=0;
        for (c=0; c<100; c++) write (1,&zero,1);
        write (1,&first_word,1); // Anfangsadresse ausgeben    
        c=020;
        for (c=0; c<100; c++) write (1,&zero,1);
        write (1,&first_word,1); // Anfangsadresse ausgeben    
        c=020;