boot-maker: Fix warnings (missing header file)
[h316.git] / pc-tools / boot-maker / main.c
index 2dc16e101ec263042597be4c670c6010ff0c9cf9..0ac9f31dc5ea399b2e50c0d5709d145d4cf9213b 100644 (file)
@@ -1,11 +1,10 @@
 #include <stdio.h>
-
+#include <unistd.h>
 
 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;
@@ -54,7 +53,7 @@ void prepare_3(unsigned short * mem){
 
 int main(){
     unsigned short memory[0100];
-    prepare_3(memory);
+    prepare_2(memory);
     output(memory);
     return 0;
 }