Again, with the cleanup that comes from it.
---
 src/Makefile        |    2 +-
 src/main.c          |    2 ++
 src/pixbuf/dither.c |    3 ++-
 src/pixbuf/pixbuf.h |    2 +-
 src/pngwrite.c      |    1 +
 src/shellext.c      |    8 ++++----
 src/shortcuts.c     |    1 +
 src/version.c       |    2 ++
 8 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index a36666b..6ed4fa0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -27,7 +27,7 @@ else
     RANLIB  = $(RANLIB_quiet)
 endif
 
-CFLAGS = -O9 -Wall -Wstrict-prototypes \
+CFLAGS = -O9 -Wall -Wstrict-prototypes -Wmissing-prototypes \
         -mbarrel-shift-enabled -mmultiply-enabled \
         -mdivide-enabled -msign-extend-enabled -fsingle-precision-constant \
         -I$(RTEMS_MAKEFILE_PATH)/lib/include -g
diff --git a/src/main.c b/src/main.c
index 79d8c7c..489d4df 100644
--- a/src/main.c
+++ b/src/main.c
@@ -153,6 +153,8 @@ static rtems_id gui_task_id;
        mount("/dev/memcard1", "/memcard", "dosfs", RTEMS_FILESYSTEM_READ_ONLY, 
"");
 }*/
 
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(rtems_task_argument argument)
 {
        rtems_status_code sc;
diff --git a/src/pixbuf/dither.c b/src/pixbuf/dither.c
index 817e0e7..4eb5773 100644
--- a/src/pixbuf/dither.c
+++ b/src/pixbuf/dither.c
@@ -18,6 +18,7 @@
 #include <stdlib.h>
 
 #include "../color.h"
+#include "dither.h"
 
 static void floyd_steinberg(int *pic, int width, int height)
 {
@@ -128,4 +129,4 @@ int pixbuf_dither(unsigned short *ret, unsigned char 
**row_pointers, int width,
        free(pic);
        
        return 1;
-}
\ No newline at end of file
+}
diff --git a/src/pixbuf/pixbuf.h b/src/pixbuf/pixbuf.h
index 3ce6957..5d987fc 100644
--- a/src/pixbuf/pixbuf.h
+++ b/src/pixbuf/pixbuf.h
@@ -33,4 +33,4 @@ void pixbuf_dec_ref(struct pixbuf *p);
 
 struct pixbuf *pixbuf_get(char *filename);
 
-#endif /* __PIXBUF_PIXBUF_H */
\ No newline at end of file
+#endif /* __PIXBUF_PIXBUF_H */
diff --git a/src/pngwrite.c b/src/pngwrite.c
index 968ea8c..1c62e5d 100644
--- a/src/pngwrite.c
+++ b/src/pngwrite.c
@@ -23,6 +23,7 @@
 
 #include "color.h"
 #include "png.h"
+#include "pngwrite.h"
 
 #ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
 #warning Floating point PNG is slow
diff --git a/src/shellext.c b/src/shellext.c
index 7b67dd3..98b4b41 100644
--- a/src/shellext.c
+++ b/src/shellext.c
@@ -31,7 +31,7 @@
 #include "shellext.h"
 #include "fbgrab.h"
 
-int main_viwrite(int argc, char **argv)
+static int main_viwrite(int argc, char **argv)
 {
        unsigned int reg, val;
        int fd;
@@ -59,7 +59,7 @@ int main_viwrite(int argc, char **argv)
        return 0;
 }
 
-int main_viread(int argc, char **argv)
+static int main_viread(int argc, char **argv)
 {
        int fd;
        unsigned int rv;
@@ -86,7 +86,7 @@ int main_viread(int argc, char **argv)
        return 0;
 }
 
-int main_erase(int argc, char **argv)
+static int main_erase(int argc, char **argv)
 {
        int fd;
        int r;
@@ -137,7 +137,7 @@ int main_erase(int argc, char **argv)
        return 0;
 }
 
-int main_fbgrab(int argc, char **argv)
+static int main_fbgrab(int argc, char **argv)
 {
        int ret = 0;
 
diff --git a/src/shortcuts.c b/src/shortcuts.c
index 3c5a0c7..5d9798c 100644
--- a/src/shortcuts.c
+++ b/src/shortcuts.c
@@ -29,6 +29,7 @@
 #include "fb.h"
 #include "gui/guirender.h"
 #include "gui/flash.h"
+#include "shortcuts.h"
 
 static int ctrl, alt;
 static int f9_pressed;
diff --git a/src/version.c b/src/version.c
index 44824ff..e395e4a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -20,6 +20,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include "version.h"
+
 char soc[13];
 char pcb[3];
 char pcb_rev[2];
-- 
1.7.1

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to