Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 67 files changed
  • 0 comments
  • 1 contributor
Dec 12, 2011
Werner Almesberger flickernoise: use -Wstrict-prototypes
With all the little changes that are needed to get an almost clean
compile.

/opt/rtems-4.11/lm32-rtems4.11/milkymist/lib/include/lop/lop_lowlevel.h
is the only problem left.
5d8e839
Werner Almesberger flickernoise: use -Wmissing-prototypes
Again, with the cleanup that comes from it.
8d7d53d
Werner Almesberger flickernoise: use -Wold-style-declaration
We just had one case of "static" not being the first item, in
bandfilters.h. Updated the script generating it and then re-generated
the file.
911ca23
Werner Almesberger flickernoise: use -Wold-style-definition
This one catches all the old-style definitions with ANSI-conformant
declarations, e.g.,

int foo(void);

...

int foo()
{
	...
}

Due to -Wstrict-prototypes and -Wmissing-prototypes, we're already
reasonably sure that this can't cause trouble. But better safe than
sorry.
98e96e7
Werner Almesberger flickernoise: improve quiet mode of Makefile
This patch restructures the verbosity control to make it more
readable and then adds $(GEN), of any remaining type of file
generation.
7a57cc5

Showing 67 changed files with 261 additions and 247 deletions. Show diff stats Hide diff stats

  1. 53  src/Makefile
  2. 2  src/config.c
  3. 2  src/config.h
  4. 10  src/fb.c
  5. 10  src/fb.h
  6. 2  src/fbgrab.c
  7. 4  src/gui/about.c
  8. 4  src/gui/about.h
  9. 8  src/gui/audio.c
  10. 6  src/gui/audio.h
  11. 10  src/gui/cp.c
  12. 6  src/gui/cp.h
  13. 8  src/gui/dmx.c
  14. 6  src/gui/dmx.h
  15. 6  src/gui/dmxdesk.c
  16. 6  src/gui/dmxdesk.h
  17. 6  src/gui/dmxspy.c
  18. 6  src/gui/dmxspy.h
  19. 4  src/gui/filemanager.c
  20. 4  src/gui/filemanager.h
  21. 4  src/gui/firstpatch.c
  22. 4  src/gui/firstpatch.h
  23. 16  src/gui/flash.c
  24. 2  src/gui/flash.h
  25. 2  src/gui/guirender.c
  26. 4  src/gui/guirender.h
  27. 12  src/gui/ir.c
  28. 4  src/gui/ir.h
  29. 12  src/gui/keyboard.c
  30. 4  src/gui/keyboard.h
  31. 2  src/gui/messagebox.c
  32. 2  src/gui/messagebox.h
  33. 12  src/gui/midi.c
  34. 4  src/gui/midi.h
  35. 6  src/gui/monitor.c
  36. 6  src/gui/monitor.h
  37. 12  src/gui/oscsettings.c
  38. 4  src/gui/oscsettings.h
  39. 8  src/gui/patcheditor.c
  40. 4  src/gui/patcheditor.h
  41. 26  src/gui/performance.c
  42. 4  src/gui/performance.h
  43. 14  src/gui/rsswall.c
  44. 8  src/gui/rsswall.h
  45. 4  src/gui/shutdown.c
  46. 4  src/gui/shutdown.h
  47. 32  src/gui/sysettings.c
  48. 6  src/gui/sysettings.h
  49. 10  src/gui/videoin.c
  50. 6  src/gui/videoin.h
  51. 4  src/input.c
  52. 4  src/input.h
  53. 2  src/main.c
  54. 2  src/osc.c
  55. 2  src/osc.h
  56. 3  src/pixbuf/dither.c
  57. 2  src/pixbuf/pixbuf.h
  58. 1  src/pngwrite.c
  59. 6  src/renderer/bandfilters.h
  60. 6  src/renderer/bandfilters.sce
  61. 8  src/shellext.c
  62. 5  src/shortcuts.c
  63. 2  src/shortcuts.h
  64. 36  src/sysconfig.c
  65. 18  src/sysconfig.h
  66. 4  src/version.c
  67. 2  src/version.h
53  src/Makefile
@@ -4,30 +4,37 @@ RTEMS_MAKEFILE_PATH ?= \
4 4
 WITH_PDF ?= 0
5 5
 
6 6
 CROSS_COMPILER=lm32-rtems$(RTEMS_VERSION)-
7  
-CC_normal := $(CROSS_COMPILER)gcc
8  
-LD_normal := $(CROSS_COMPILER)gcc
9  
-OBJCOPY_normal := $(CROSS_COMPILER)objcopy
10  
-CC_quiet = @echo " CC " $@ && $(CROSS_COMPILER)gcc
11  
-LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)gcc
12  
-OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy
  7
+
  8
+CC_normal	:= $(CROSS_COMPILER)gcc
  9
+LD_normal	:= $(CROSS_COMPILER)gcc
  10
+OBJCOPY_normal	:= $(CROSS_COMPILER)objcopy
  11
+
  12
+CC_quiet	= @echo " CC " $@ && $(CROSS_COMPILER)gcc
  13
+LD_quiet	= @echo " LD " $@ && $(CROSS_COMPILER)gcc
  14
+OBJCOPY_quiet	= @echo " OBJCOPY " $@ && $(CROSS_COMPILER)objcopy
  15
+GEN_quiet	= @echo " GENERATE " $@ &&
13 16
 
14 17
 ifeq ($(V),1)
15  
-    CC = $(CC_normal)
16  
-    AR = $(AR_normal)
17  
-    AS = $(AS_normal)
18  
-    LD = $(LD_normal)
19  
-    OBJCOPY = $(OBJCOPY_normal)
20  
-    RANLIB  = $(RANLIB_normal)
  18
+    CC		= $(CC_normal)
  19
+    AR		= $(AR_normal)
  20
+    AS		= $(AS_normal)
  21
+    LD		= $(LD_normal)
  22
+    OBJCOPY	= $(OBJCOPY_normal)
  23
+    RANLIB	= $(RANLIB_normal)
  24
+    GEN		=
21 25
 else
22  
-    CC = $(CC_quiet)
23  
-    AR = $(AR_quiet)
24  
-    AS = $(AS_quiet)
25  
-    LD = $(LD_quiet)
26  
-    OBJCOPY = $(OBJCOPY_quiet)
27  
-    RANLIB  = $(RANLIB_quiet)
  26
+    CC		= $(CC_quiet)
  27
+    AR		= $(AR_quiet)
  28
+    AS		= $(AS_quiet)
  29
+    LD		= $(LD_quiet)
  30
+    OBJCOPY	= $(OBJCOPY_quiet)
  31
+    RANLIB	= $(RANLIB_quiet)
  32
+    GEN		= $(GEN_quiet)
28 33
 endif
29 34
 
30  
-CFLAGS = -O9 -Wall -mbarrel-shift-enabled -mmultiply-enabled \
  35
+CFLAGS = -O9 -Wall -Wstrict-prototypes -Wmissing-prototypes \
  36
+	 -Wold-style-declaration -Wold-style-definition \
  37
+	 -mbarrel-shift-enabled -mmultiply-enabled \
31 38
 	 -mdivide-enabled -msign-extend-enabled -fsingle-precision-constant \
32 39
 	 -I$(RTEMS_MAKEFILE_PATH)/lib/include -g
33 40
 LDFLAGS = -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled \
@@ -77,17 +84,17 @@ bandfilters.h: bandfilters.sce
77 84
 	scilab -nw -nwni -nogui -nb -f bandfilters.sce
78 85
 
79 86
 %.c: %.re
80  
-	re2c -c -o $@ $<
  87
+	$(GEN) re2c -c -o $@ $<
81 88
 
82 89
 %.c: %.y
83  
-	lemon $<
  90
+	$(GEN) lemon $<
84 91
 
85 92
 %.h %.inc: %.ids
86  
-	cd compiler && ./idgen `basename $<`
  93
+	$(GEN) cd compiler && ./idgen `basename $<`
87 94
 
88 95
 compiler/infra-fnp.h: \
89 96
 	  compiler/finish-pfv.fnp compiler/init-pvv.fnp compiler/finish-pvv.fnp
90  
-	compiler/file2h $^ >$@ || { rm -f $@; }
  97
+	$(GEN) compiler/file2h $^ >$@ || { rm -f $@; }
91 98
 
92 99
 compiler/parser.h: compiler/parser.c
93 100
 obj/compiler/scanner.o: compiler/parser.h
2  src/config.c
@@ -146,7 +146,7 @@ void config_delete(const char *key)
146 146
 	free(e);
147 147
 }
148 148
 
149  
-void config_free()
  149
+void config_free(void)
150 150
 {
151 151
 	struct element *e, *next;
152 152
 
2  src/config.h
@@ -27,7 +27,7 @@ const char *config_read_string(const char *key);
27 27
 void config_write_string(const char *key, const char *value);
28 28
 
29 29
 void config_delete(const char *key);
30  
-void config_free();
  30
+void config_free(void);
31 31
 
32 32
 int config_load(const char *filename);
33 33
 int config_save(const char *filename);
10  src/fb.c
@@ -90,7 +90,7 @@ void init_fb_mtk(int quiet)
90 90
 	}
91 91
 }
92 92
 
93  
-void fb_unblank()
  93
+void fb_unblank(void)
94 94
 {
95 95
 	if(blanked) {
96 96
 		set_mode(sysconfig_get_resolution());
@@ -101,7 +101,7 @@ void fb_unblank()
101 101
 	}
102 102
 }
103 103
 
104  
-void fb_render_mode()
  104
+void fb_render_mode(void)
105 105
 {
106 106
 	set_mode(SC_RESOLUTION_640_480);
107 107
 	ioctl(framebuffer_fd, FBIOSETBUFFERMODE, FB_TRIPLE_BUFFERED);
@@ -109,7 +109,7 @@ void fb_render_mode()
109 109
 	g_render_mode = 1;
110 110
 }
111 111
 
112  
-void fb_gui_mode()
  112
+void fb_gui_mode(void)
113 113
 {
114 114
 	set_mode(sysconfig_get_resolution());
115 115
 	ioctl(framebuffer_fd, FBIOSETBUFFERMODE, FB_SINGLE_BUFFERED);
@@ -117,12 +117,12 @@ void fb_gui_mode()
117 117
 	g_render_mode = 0;
118 118
 }
119 119
 
120  
-int fb_get_mode()
  120
+int fb_get_mode(void)
121 121
 {
122 122
 	return g_render_mode;
123 123
 }
124 124
 
125  
-void fb_resize_gui()
  125
+void fb_resize_gui(void)
126 126
 {
127 127
 	struct fb_fix_screeninfo fb_fix;
128 128
 	int mode, hres, vres;
10  src/fb.h
@@ -21,10 +21,10 @@
21 21
 extern int framebuffer_fd;
22 22
 
23 23
 void init_fb_mtk(int quiet);
24  
-void fb_unblank();
25  
-void fb_render_mode();
26  
-void fb_gui_mode();
27  
-void fb_resize_gui();
28  
-int fb_get_mode();
  24
+void fb_unblank(void);
  25
+void fb_render_mode(void);
  26
+void fb_gui_mode(void);
  27
+void fb_resize_gui(void);
  28
+int fb_get_mode(void);
29 29
 
30 30
 #endif /* __FB_H */
2  src/fbgrab.c
@@ -33,7 +33,7 @@
33 33
 
34 34
 static char *filename = "/ssd/Screenshot-00.png";
35 35
 
36  
-static char *get_name()
  36
+static char *get_name(void)
37 37
 {
38 38
 	struct stat st;
39 39
 	int i, result;
4  src/gui/about.c
@@ -37,7 +37,7 @@ static void flash_callback(mtk_event *e, void *arg)
37 37
 
38 38
 #define FLASH_OFFSET_MAC_ADDRESS (0x002200E0)
39 39
 
40  
-void init_about()
  40
+void init_about(void)
41 41
 {
42 42
 	unsigned char *macadr = (unsigned char *)FLASH_OFFSET_MAC_ADDRESS;
43 43
 
@@ -93,7 +93,7 @@ void init_about()
93 93
 	mtk_bind(appid, "w", "close", close_callback, NULL);
94 94
 }
95 95
 
96  
-void open_about_window()
  96
+void open_about_window(void)
97 97
 {
98 98
 	mtk_cmd(appid, "w.open()");
99 99
 }
4  src/gui/about.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __ABOUT_H
19 19
 #define __ABOUT_H
20 20
 
21  
-void init_about();
22  
-void open_about_window();
  21
+void init_about(void);
  22
+void open_about_window(void);
23 23
 
24 24
 #endif /* __ABOUT_H */
8  src/gui/audio.c
@@ -87,7 +87,7 @@ static void mute_callback(mtk_event *e, void *arg)
87 87
 	}
88 88
 }
89 89
 
90  
-void load_audio_config()
  90
+void load_audio_config(void)
91 91
 {
92 92
 	line_vol = config_read_int("line_vol", 100);
93 93
 	line_mute = config_read_int("line_mute", 0);
@@ -109,7 +109,7 @@ void load_audio_config()
109 109
 		set_level(1, mic_vol);
110 110
 }
111 111
 
112  
-static void set_config()
  112
+static void set_config(void)
113 113
 {
114 114
 	config_write_int("line_vol", line_vol);
115 115
 	config_write_int("line_mute", line_mute);
@@ -134,7 +134,7 @@ static void close_callback(mtk_event *e, void *arg)
134 134
 	load_audio_config();
135 135
 }
136 136
 
137  
-void init_audio()
  137
+void init_audio(void)
138 138
 {
139 139
 	appid = mtk_init_app("Audio");
140 140
 
@@ -193,7 +193,7 @@ void init_audio()
193 193
 	load_audio_config();
194 194
 }
195 195
 
196  
-void open_audio_window()
  196
+void open_audio_window(void)
197 197
 {
198 198
 	if(w_open) return;
199 199
 	w_open = 1;
6  src/gui/audio.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __AUDIO_H
19 19
 #define __AUDIO_H
20 20
 
21  
-void init_audio();
22  
-void open_audio_window();
23  
-void load_audio_config();
  21
+void init_audio(void);
  22
+void open_audio_window(void);
  23
+void load_audio_config(void);
24 24
 
25 25
 #endif /* __AUDIO_H */
10  src/gui/cp.c
@@ -54,20 +54,20 @@ static struct filedialog *save_dlg;
54 54
 
55 55
 static int changed;
56 56
 
57  
-void cp_notify_changed()
  57
+void cp_notify_changed(void)
58 58
 {
59 59
 	if(changed) return;
60 60
 	changed = 1;
61 61
 	mtk_cmd(appid, "w.set(-title \"Control panel *\")");
62 62
 }
63 63
 
64  
-static void clear_changed()
  64
+static void clear_changed(void)
65 65
 {
66 66
 	mtk_cmd(appid, "w.set(-title \"Control panel\")");
67 67
 	changed = 0;
68 68
 }
69 69
 
70  
-static void on_config_change()
  70
+static void on_config_change(void)
71 71
 {
72 72
 	/* reload config for controls that need modification of some state */
73 73
 	load_audio_config();
@@ -207,7 +207,7 @@ static void cp_callback(mtk_event *e, void *arg)
207 207
 	}
208 208
 }
209 209
 
210  
-void init_cp()
  210
+void init_cp(void)
211 211
 {
212 212
 	appid = mtk_init_app("Control panel");
213 213
 
@@ -363,7 +363,7 @@ void init_cp()
363 363
 	save_dlg = create_filedialog("Save performance", 1, "per", saveok_callback, NULL, NULL, NULL);
364 364
 }
365 365
 
366  
-void cp_autostart()
  366
+void cp_autostart(void)
367 367
 {
368 368
 	char autostart[256];
369 369
 	int dt, as;
6  src/gui/cp.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __CP_H
19 19
 #define __CP_H
20 20
 
21  
-void init_cp();
22  
-void cp_notify_changed();
23  
-void cp_autostart();
  21
+void init_cp(void);
  22
+void cp_notify_changed(void);
  23
+void cp_autostart(void);
24 24
 
25 25
 #endif /* __CP_H */
8  src/gui/dmx.c
@@ -64,7 +64,7 @@ static void set_chain_mode(int chain)
64 64
 	resmgr_release(RESOURCE_DMX_OUT);
65 65
 }
66 66
 
67  
-void load_dmx_config()
  67
+void load_dmx_config(void)
68 68
 {
69 69
 	int i, value;
70 70
 	char confname[12];
@@ -82,7 +82,7 @@ void load_dmx_config()
82 82
 	set_chain_mode(config_read_int("dmx_chain", 1));
83 83
 }
84 84
 
85  
-static void set_config()
  85
+static void set_config(void)
86 86
 {
87 87
 	int i, value;
88 88
 	char confname[16];
@@ -142,7 +142,7 @@ static void close_callback(mtk_event *e, void *arg)
142 142
 	mtk_cmd(appid, "w.close()");
143 143
 }
144 144
 
145  
-void init_dmx()
  145
+void init_dmx(void)
146 146
 {
147 147
 	int i;
148 148
 
@@ -212,7 +212,7 @@ void init_dmx()
212 212
 	set_chain_mode(1);
213 213
 }
214 214
 
215  
-void open_dmx_window()
  215
+void open_dmx_window(void)
216 216
 {
217 217
 	if(w_open) return;
218 218
 	w_open = 1;
6  src/gui/dmx.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __DMX_H
19 19
 #define __DMX_H
20 20
 
21  
-void init_dmx();
22  
-void open_dmx_window();
23  
-void load_dmx_config();
  21
+void init_dmx(void);
  22
+void open_dmx_window(void);
  23
+void load_dmx_config(void);
24 24
 
25 25
 #endif /* __DMX_H */
6  src/gui/dmxdesk.c
@@ -82,7 +82,7 @@ static void close_callback(mtk_event *e, void *arg)
82 82
 	close_dmxdesk_window();
83 83
 }
84 84
 
85  
-void init_dmxdesk()
  85
+void init_dmxdesk(void)
86 86
 {
87 87
 	int i;
88 88
 
@@ -115,7 +115,7 @@ void init_dmxdesk()
115 115
 
116 116
 static int w_open;
117 117
 
118  
-void open_dmxdesk_window()
  118
+void open_dmxdesk_window(void)
119 119
 {
120 120
 	if(w_open) return;
121 121
 	w_open = 1;
@@ -131,7 +131,7 @@ void open_dmxdesk_window()
131 131
 	mtk_cmd(appid, "w.open()");
132 132
 }
133 133
 
134  
-void close_dmxdesk_window()
  134
+void close_dmxdesk_window(void)
135 135
 {
136 136
 	if(!w_open) return;
137 137
 	w_open = 0;
6  src/gui/dmxdesk.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __DMXDESK_H
19 19
 #define __DMXDESK_H
20 20
 
21  
-void init_dmxdesk();
22  
-void open_dmxdesk_window();
23  
-void close_dmxdesk_window();
  21
+void init_dmxdesk(void);
  22
+void open_dmxdesk_window(void);
  23
+void close_dmxdesk_window(void);
24 24
 
25 25
 #endif /* __DMXTABLE_H */
6  src/gui/dmxspy.c
@@ -76,7 +76,7 @@ static void close_callback(mtk_event *e, void *arg)
76 76
 	close_dmxspy_window();
77 77
 }
78 78
 
79  
-void init_dmxspy()
  79
+void init_dmxspy(void)
80 80
 {
81 81
 	appid = mtk_init_app("DMX spy");
82 82
 
@@ -100,7 +100,7 @@ void init_dmxspy()
100 100
 
101 101
 }
102 102
 
103  
-void open_dmxspy_window()
  103
+void open_dmxspy_window(void)
104 104
 {
105 105
 	if(w_open) return;
106 106
 	if(!resmgr_acquire("DMX spy", RESOURCE_DMX_IN)) return;
@@ -117,7 +117,7 @@ void open_dmxspy_window()
117 117
 	input_add_callback(dmxspy_update);
118 118
 }
119 119
 
120  
-void close_dmxspy_window()
  120
+void close_dmxspy_window(void)
121 121
 {
122 122
 	mtk_cmd(appid, "w.close()");
123 123
 	input_delete_callback(dmxspy_update);
6  src/gui/dmxspy.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __DMXSPY_H
19 19
 #define __DMXSPY_H
20 20
 
21  
-void init_dmxspy();
22  
-void open_dmxspy_window();
23  
-void close_dmxspy_window();
  21
+void init_dmxspy(void);
  22
+void open_dmxspy_window(void);
  23
+void close_dmxspy_window(void);
24 24
 
25 25
 #endif /* __DMXSPY_H */
4  src/gui/filemanager.c
@@ -286,7 +286,7 @@ static void unlock_callback(mtk_event *e, void *arg)
286 286
 	unlock++;
287 287
 }
288 288
 
289  
-void init_filemanager()
  289
+void init_filemanager(void)
290 290
 {
291 291
 	appid = mtk_init_app("File manager");
292 292
 
@@ -466,7 +466,7 @@ static void display_folder(int panel, const char *folder)
466 466
 	mtk_cmdf(appid, "p%d_listf.expose(0, 0)", panel);
467 467
 }
468 468
 
469  
-void open_filemanager_window()
  469
+void open_filemanager_window(void)
470 470
 {
471 471
 	unlock = 0;
472 472
 	display_folder(0, ROOT_FOLDER);
4  src/gui/filemanager.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __FILEMANAGER_H
19 19
 #define __FILEMANAGER_H
20 20
 
21  
-void init_filemanager();
22  
-void open_filemanager_window();
  21
+void init_filemanager(void);
  22
+void open_filemanager_window(void);
23 23
 
24 24
 #endif /* __FILEMANAGER_H */
4  src/gui/firstpatch.c
@@ -62,7 +62,7 @@ static void browse_ok_callback(void *arg)
62 62
 	mtk_cmdf(appid, "e_filename.set(-text \"%s\")", filename);
63 63
 }
64 64
 
65  
-void init_firstpatch()
  65
+void init_firstpatch(void)
66 66
 {
67 67
 	appid = mtk_init_app("First patch");
68 68
 
@@ -102,7 +102,7 @@ void init_firstpatch()
102 102
 	browse_dlg = create_filedialog("Select first patch", 0, "fnp", browse_ok_callback, NULL, NULL, NULL);
103 103
 }
104 104
 
105  
-void open_firstpatch_window()
  105
+void open_firstpatch_window(void)
106 106
 {
107 107
 	const char *firstpatch;
108 108
 	
4  src/gui/firstpatch.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __FIRSTPATCH_H
19 19
 #define __FIRSTPATCH_H
20 20
 
21  
-void init_firstpatch();
22  
-void open_firstpatch_window();
  21
+void init_firstpatch(void);
  22
+void open_firstpatch_window(void);
23 23
 
24 24
 #endif /* __FIRSTPATCH_H */
16  src/gui/flash.c
@@ -390,7 +390,7 @@ static void get_versions(struct patchpool *local_patches, struct patchpool *remo
390 390
 	flash_progress = 100;
391 391
 }
392 392
 
393  
-static void download_images()
  393
+static void download_images(void)
394 394
 {
395 395
 	int rescue;
396 396
 	
@@ -484,7 +484,7 @@ static void download_patches(struct patchpool *pp)
484 484
 	}
485 485
 }
486 486
 
487  
-static void flash_images()
  487
+static void flash_images(void)
488 488
 {
489 489
 	if(bitstream_name[0] != 0) {
490 490
 		flashvalid_val = flashvalid_bitstream(bitstream_name);
@@ -546,7 +546,7 @@ static rtems_task flash_task(rtems_task_argument argument)
546 546
 	flash_terminate(FLASH_STATE_SUCCESS);
547 547
 }
548 548
 
549  
-static int flash_busy()
  549
+static int flash_busy(void)
550 550
 {
551 551
 	switch(flash_state) {
552 552
 		case FLASH_STATE_READY:
@@ -564,7 +564,7 @@ static int flash_busy()
564 564
 	}
565 565
 }
566 566
 
567  
-static void update_progress();
  567
+static void update_progress(void);
568 568
 
569 569
 #define UPDATE_PERIOD 40
570 570
 static rtems_interval next_update;
@@ -593,12 +593,12 @@ static void display_flashvalid_message(const char *n)
593 593
 	}
594 594
 }
595 595
 
596  
-static void update_done()
  596
+static void update_done(void)
597 597
 {
598 598
 	input_delete_callback(refresh_callback);
599 599
 }
600 600
 
601  
-static void update_progress()
  601
+static void update_progress(void)
602 602
 {
603 603
 	if(installed_patches < 0)
604 604
 		mtk_cmd(appid, "l_patchpool_i.set(-text \"\e?\")");
@@ -745,7 +745,7 @@ static void closefiles_callback(mtk_event *e, void *arg)
745 745
 	mtk_cmd(appid, "w_files.close()");
746 746
 }
747 747
 
748  
-static void flash_filedialog_ok_callback()
  748
+static void flash_filedialog_ok_callback(void *arg)
749 749
 {
750 750
 	char filepath[384];
751 751
 
@@ -761,7 +761,7 @@ static void opendialog_callback(mtk_event *e, void *arg)
761 761
 	open_filedialog(file_dlg);
762 762
 }
763 763
 
764  
-void init_flash()
  764
+void init_flash(void)
765 765
 {
766 766
 	appid = mtk_init_app("Flash");
767 767
 
2  src/gui/flash.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __FLASH_H
19 19
 #define __FLASH_H
20 20
 
21  
-void init_flash();
  21
+void init_flash(void);
22 22
 void open_flash_window(int automatic);
23 23
 
24 24
 #endif /* __FLASH_H */
2  src/gui/guirender.c
@@ -53,7 +53,7 @@ static void input_cb(mtk_event *e, int count);
53 53
 static int guirender_running;
54 54
 static guirender_stop_callback callback;
55 55
 
56  
-void guirender_stop()
  56
+void guirender_stop(void)
57 57
 {
58 58
 	if(!guirender_running) return;
59 59
 	guirender_running = 0;
4  src/gui/guirender.h
@@ -20,9 +20,9 @@
20 20
 
21 21
 #include "../compiler/compiler.h"
22 22
 
23  
-typedef void (*guirender_stop_callback)();
  23
+typedef void (*guirender_stop_callback)(void);
24 24
 
25 25
 int guirender(int appid, struct patch *p, guirender_stop_callback cb);
26  
-void guirender_stop();
  26
+void guirender_stop(void);
27 27
 
28 28
 #endif /* __GUIRENDER_H */
12  src/gui/ir.c
@@ -42,7 +42,7 @@ static int w_open;
42 42
 
43 43
 static char key_bindings[64][384];
44 44
 
45  
-static void load_config()
  45
+static void load_config(void)
46 46
 {
47 47
 	char config_key[6];
48 48
 	int i;
@@ -59,7 +59,7 @@ static void load_config()
59 59
 	}
60 60
 }
61 61
 
62  
-static void set_config()
  62
+static void set_config(void)
63 63
 {
64 64
 	char config_key[6];
65 65
 	int i;
@@ -74,7 +74,7 @@ static void set_config()
74 74
 	}
75 75
 }
76 76
 
77  
-static void update_list()
  77
+static void update_list(void)
78 78
 {
79 79
 	char str[32768];
80 80
 	char *p;
@@ -129,7 +129,7 @@ static void ir_event(mtk_event *e, int count)
129 129
 	}
130 130
 }
131 131
 
132  
-static void close_window()
  132
+static void close_window(void)
133 133
 {
134 134
 	mtk_cmd(appid, "w.close()");
135 135
 	input_delete_callback(ir_event);
@@ -261,7 +261,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
261 261
 	update_list();
262 262
 }
263 263
 
264  
-void init_ir()
  264
+void init_ir(void)
265 265
 {
266 266
 	appid = mtk_init_app("IR remote control settings");
267 267
 
@@ -340,7 +340,7 @@ void init_ir()
340 340
 	browse_dlg = create_filedialog("Select IR patch", 0, "fnp", browse_ok_callback, NULL, NULL, NULL);
341 341
 }
342 342
 
343  
-void open_ir_window()
  343
+void open_ir_window(void)
344 344
 {
345 345
 	if(w_open) return;
346 346
 	w_open = 1;
4  src/gui/ir.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __IR_H
19 19
 #define __IR_H
20 20
 
21  
-void init_ir();
22  
-void open_ir_window();
  21
+void init_ir(void);
  22
+void open_ir_window(void);
23 23
 
24 24
 #endif /* __IR_H */
12  src/gui/keyboard.c
@@ -40,7 +40,7 @@ static int w_open;
40 40
 
41 41
 static char key_bindings[26][384];
42 42
 
43  
-static void load_config()
  43
+static void load_config(void)
44 44
 {
45 45
 	char config_key[6];
46 46
 	int i;
@@ -58,7 +58,7 @@ static void load_config()
58 58
 	}
59 59
 }
60 60
 
61  
-static void set_config()
  61
+static void set_config(void)
62 62
 {
63 63
 	char config_key[6];
64 64
 	int i;
@@ -74,7 +74,7 @@ static void set_config()
74 74
 	}
75 75
 }
76 76
 
77  
-static void update_list()
  77
+static void update_list(void)
78 78
 {
79 79
 	char str[32768];
80 80
 	char *p;
@@ -133,7 +133,7 @@ static void cancel_callback(mtk_event *e, void *arg)
133 133
 	close_filedialog(browse_dlg);
134 134
 }
135 135
 
136  
-static void browse_ok_callback()
  136
+static void browse_ok_callback(void *arg)
137 137
 {
138 138
 	char filename[384];
139 139
 
@@ -243,7 +243,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
243 243
 	update_list();
244 244
 }
245 245
 
246  
-void init_keyboard()
  246
+void init_keyboard(void)
247 247
 {
248 248
 	appid = mtk_init_app("Keyboard");
249 249
 
@@ -322,7 +322,7 @@ void init_keyboard()
322 322
 	browse_dlg = create_filedialog("Select keyboard patch", 0, "fnp", browse_ok_callback, NULL, NULL, NULL);
323 323
 }
324 324
 
325  
-void open_keyboard_window()
  325
+void open_keyboard_window(void)
326 326
 {
327 327
 	if(w_open) return;
328 328
 	w_open = 1;
4  src/gui/keyboard.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __KEYBOARD_H
19 19
 #define __KEYBOARD_H
20 20
 
21  
-void init_keyboard();
22  
-void open_keyboard_window();
  21
+void init_keyboard(void);
  22
+void open_keyboard_window(void);
23 23
 
24 24
 #endif /* __KEYBOARD_H */
2  src/gui/messagebox.c
@@ -28,7 +28,7 @@ static void close_callback(mtk_event *e, void *arg)
28 28
 	mtk_cmd(appid, "w.close()");
29 29
 }
30 30
 
31  
-void init_messagebox()
  31
+void init_messagebox(void)
32 32
 {
33 33
 	appid = mtk_init_app("Messagebox");
34 34
 	mtk_cmd_seq(appid,
2  src/gui/messagebox.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __MESSAGEBOX_H
19 19
 #define __MESSAGEBOX_H
20 20
 
21  
-void init_messagebox();
  21
+void init_messagebox(void);
22 22
 void messagebox(const char *title, const char *text);
23 23
 
24 24
 #endif /* __MESSAGEBOX_H */
12  src/gui/midi.c
@@ -165,7 +165,7 @@ static int w_open;
165 165
 
166 166
 static char midi_bindings[128][384];
167 167
 
168  
-static void load_config()
  168
+static void load_config(void)
169 169
 {
170 170
 	char config_key[8];
171 171
 	int i;
@@ -188,7 +188,7 @@ static void load_config()
188 188
 	}
189 189
 }
190 190
 
191  
-static void set_config()
  191
+static void set_config(void)
192 192
 {
193 193
 	char config_key[16];
194 194
 	int i;
@@ -212,7 +212,7 @@ static void set_config()
212 212
 	config_write_int("midi_channel", mtk_req_i(appid, "e_channel.text"));
213 213
 }
214 214
 
215  
-static void update_list()
  215
+static void update_list(void)
216 216
 {
217 217
 	char str[32768];
218 218
 	char note[16];
@@ -294,7 +294,7 @@ static void midi_event(mtk_event *e, int count)
294 294
 	}
295 295
 }
296 296
 
297  
-static void close_window()
  297
+static void close_window(void)
298 298
 {
299 299
 	mtk_cmd(appid, "w.close()");
300 300
 	input_delete_callback(midi_event);
@@ -434,7 +434,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
434 434
 	update_list();
435 435
 }
436 436
 
437  
-void init_midi()
  437
+void init_midi(void)
438 438
 {
439 439
 	int i;
440 440
 	
@@ -571,7 +571,7 @@ void init_midi()
571 571
 	browse_dlg = create_filedialog("Select MIDI patch", 0, "fnp", browse_ok_callback, NULL, NULL, NULL);
572 572
 }
573 573
 
574  
-void open_midi_window()
  574
+void open_midi_window(void)
575 575
 {
576 576
 	if(w_open) return;
577 577
 	w_open = 1;
4  src/gui/midi.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __MIDI_H
19 19
 #define __MIDI_H
20 20
 
21  
-void init_midi();
22  
-void open_midi_window();
  21
+void init_midi(void);
  22
+void open_midi_window(void);
23 23
 
24 24
 #endif /* __MIDI_H */
6  src/gui/monitor.c
@@ -134,7 +134,7 @@ static void close_callback(mtk_event *e, void *arg)
134 134
 	w_open = 0;
135 135
 }
136 136
 
137  
-void init_monitor()
  137
+void init_monitor(void)
138 138
 {
139 139
 	int i;
140 140
 	int column;
@@ -167,7 +167,7 @@ void init_monitor()
167 167
 	mtk_bind(appid, "w", "close", close_callback, NULL);
168 168
 }
169 169
 
170  
-void open_monitor_window()
  170
+void open_monitor_window(void)
171 171
 {
172 172
 	if(w_open) return;
173 173
 
@@ -186,7 +186,7 @@ void open_monitor_window()
186 186
 	sampler_start(sampler_callback);
187 187
 }
188 188
 
189  
-void monitor_notify_changed()
  189
+void monitor_notify_changed(void)
190 190
 {
191 191
 	if(!w_open) return;
192 192
 	sampler_stop();
6  src/gui/monitor.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __MONITOR_H
19 19
 #define __MONITOR_H
20 20
 
21  
-void init_monitor();
22  
-void open_monitor_window();
23  
-void monitor_notify_changed();
  21
+void init_monitor(void);
  22
+void open_monitor_window(void);
  23
+void monitor_notify_changed(void);
24 24
 
25 25
 #endif /* __MONITOR_H */
12  src/gui/oscsettings.c
@@ -41,7 +41,7 @@ static int w_open;
41 41
 
42 42
 static char osc_bindings[64][384];
43 43
 
44  
-static void load_config()
  44
+static void load_config(void)
45 45
 {
46 46
 	char config_key[7];
47 47
 	int i;
@@ -57,7 +57,7 @@ static void load_config()
57 57
 	}
58 58
 }
59 59
 
60  
-static void set_config()
  60
+static void set_config(void)
61 61
 {
62 62
 	char config_key[7];
63 63
 	int i;
@@ -71,7 +71,7 @@ static void set_config()
71 71
 	}
72 72
 }
73 73
 
74  
-static void update_list()
  74
+static void update_list(void)
75 75
 {
76 76
 	char str[32768];
77 77
 	char *p;
@@ -114,7 +114,7 @@ static void selchange_callback(mtk_event *e, void *arg)
114 114
 	}
115 115
 }
116 116
 
117  
-static void close_window()
  117
+static void close_window(void)
118 118
 {
119 119
 	mtk_cmd(appid, "w.close()");
120 120
 	w_open = 0;
@@ -246,7 +246,7 @@ static void autobuild_callback(mtk_event *e, void *arg)
246 246
 	update_list();
247 247
 }
248 248
 
249  
-void init_oscsettings()
  249
+void init_oscsettings(void)
250 250
 {
251 251
 	appid = mtk_init_app("OSC");
252 252
 
@@ -323,7 +323,7 @@ void init_oscsettings()
323 323
 	browse_dlg = create_filedialog("OSC patch select", 0, "fnp", browse_ok_callback, NULL, NULL, NULL);
324 324
 }
325 325
 
326  
-void open_oscsettings_window()
  326
+void open_oscsettings_window(void)
327 327
 {
328 328
 	if(w_open) return;
329 329
 	w_open = 1;
4  src/gui/oscsettings.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __OSCSETTINGS_H
19 19
 #define __OSCSETTINGS_H
20 20
 
21  
-void init_oscsettings();
22  
-void open_oscsettings_window();
  21
+void init_oscsettings(void);
  22
+void open_oscsettings_window(void);
23 23
 
24 24
 #endif /* __OSCSETTINGS_H */
8  src/gui/patcheditor.c
@@ -38,7 +38,7 @@ static struct filedialog *filesave_dlg;
38 38
 static int modified;
39 39
 static char current_filename[384];
40 40
 
41  
-static void update_wintitle()
  41
+static void update_wintitle(void)
42 42
 {
43 43
 	const char *short_filename;
44 44
 
@@ -96,7 +96,7 @@ static void openok_callback(void *arg)
96 96
 	mtk_cmd(appid, "edf.expose(0, 0)");
97 97
 }
98 98
 
99  
-static void save_current()
  99
+static void save_current(void)
100 100
 {
101 101
 	char buf[32768];
102 102
 	FILE *fd;
@@ -185,7 +185,7 @@ static void accel_callback(mtk_event *e, void *arg)
185 185
 
186 186
 static void close_callback(mtk_event *e, void *arg);
187 187
 
188  
-void init_patcheditor()
  188
+void init_patcheditor(void)
189 189
 {
190 190
 	appid = mtk_init_app("Patch editor");
191 191
 	mtk_cmd_seq(appid,
@@ -239,7 +239,7 @@ static void close_callback(mtk_event *e, void *arg)
239 239
 	mtk_cmd(appid, "w.close()");
240 240
 }
241 241
 
242  
-void open_patcheditor_window()
  242
+void open_patcheditor_window(void)
243 243
 {
244 244
 	if(w_open) return;
245 245
 	w_open = 1;
4  src/gui/patcheditor.h
@@ -18,7 +18,7 @@
18 18
 #ifndef __PATCHEDITOR_H
19 19
 #define __PATCHEDITOR_H
20 20
 
21  
-void init_patcheditor();
22  
-void open_patcheditor_window();
  21
+void init_patcheditor(void);
  22
+void open_patcheditor_window(void);
23 23
 
24 24
 #endif /* __PATCHEDITOR_H */
26  src/gui/performance.c
@@ -76,7 +76,7 @@ static int midi_channel;
76 76
 static int midi_patches[128];
77 77
 static int osc_patches[64];
78 78
 
79  
-static void add_firstpatch()
  79
+static void add_firstpatch(void)
80 80
 {
81 81
 	const char *filename;
82 82
 
@@ -85,7 +85,7 @@ static void add_firstpatch()
85 85
 	add_patch(filename);
86 86
 }
87 87
 
88  
-static void add_keyboard_patches()
  88
+static void add_keyboard_patches(void)
89 89
 {
90 90
 	int i;
91 91
 	char config_key[6];
@@ -103,7 +103,7 @@ static void add_keyboard_patches()
103 103
 	}
104 104
 }
105 105
 
106  
-static void add_ir_patches()
  106
+static void add_ir_patches(void)
107 107
 {
108 108
 	int i;
109 109
 	char config_key[6];
@@ -119,7 +119,7 @@ static void add_ir_patches()
119 119
 	}
120 120
 }
121 121
 
122  
-static void add_midi_patches()
  122
+static void add_midi_patches(void)
123 123
 {
124 124
 	int i;
125 125
 	char config_key[8];
@@ -136,7 +136,7 @@ static void add_midi_patches()
136 136
 	}
137 137
 }
138 138
 
139  
-static void add_osc_patches()
  139
+static void add_osc_patches(void)
140 140
 {
141 141
 	int i;
142 142
 	char config_key[7];
@@ -152,7 +152,7 @@ static void add_osc_patches()
152 152
 	}
153 153
 }
154 154
 
155  
-static void add_simple_patches()
  155
+static void add_simple_patches(void)
156 156
 {
157 157
 	DIR *d;
158 158
 	struct dirent *entry;
@@ -185,7 +185,7 @@ static void close_callback(mtk_event *e, void *arg)
185 185
 	mtk_cmd(appid, "w.close()");
186 186
 }
187 187
 
188  
-static void update_buttons()
  188
+static void update_buttons(void)
189 189
 {
190 190
 	mtk_cmdf(appid, "b_mode_simple.set(-state %s)", simple_mode ? "on" : "off");
191 191
 	mtk_cmdf(appid, "b_mode_file.set(-state %s)", !simple_mode ? "on" : "off");
@@ -222,7 +222,7 @@ static void go_callback(mtk_event *e, void *arg)
222 222
 	start_performance(simple_mode, dt_mode, as_mode);
223 223
 }
224 224
 
225  
-void init_performance()
  225
+void init_performance(void)
226 226
 {
227 227
 	appid = mtk_init_app("Performance");
228 228
 
@@ -313,7 +313,7 @@ static rtems_task comp_task(rtems_task_argument argument)
313 313
 	rtems_task_delete(RTEMS_SELF);
314 314
 }
315 315
 
316  
-static void free_patches()
  316
+static void free_patches(void)
317 317
 {
318 318
 	int i;
319 319
 
@@ -360,7 +360,7 @@ static int keycode_to_index(int keycode)
360 360
 static rtems_interval next_as_time;
361 361
 #define AUTOSWITCH_PERIOD_MIN (2*60*100)
362 362
 #define AUTOSWITCH_PERIOD_MAX (4*60*100)
363  
-static void update_next_as_time()
  363
+static void update_next_as_time(void)
364 364
 {
365 365
 	rtems_interval t;
366 366
 	
@@ -466,7 +466,7 @@ static void event_callback(mtk_event *e, int count)
466 466
 	}
467 467
 }
468 468
 
469  
-static void stop_callback()
  469
+static void stop_callback(void)
470 470
 {
471 471
 	free_patches();
472 472
 	started = 0;
@@ -522,7 +522,7 @@ static void refresh_callback(mtk_event *e, int count)
522 522
 	}
523 523
 }
524 524
 
525  
-void open_performance_window()
  525
+void open_performance_window(void)
526 526
 {
527 527
 	update_buttons();
528 528
 	mtk_cmd(appid, "w.open()");
@@ -530,7 +530,7 @@ void open_performance_window()
530 530
 
531 531
 static rtems_id comp_task_id;
532 532
 
533  
-static int check_input_video()
  533
+static int check_input_video(void)
534 534
 {
535 535
 	int fd;
536 536
 	unsigned int status;
4  src/gui/performance.h
@@ -20,8 +20,8 @@
20 20
 
21 21
 #define SIMPLE_PATCHES_FOLDER "/ssd/patchpool"
22 22
 
23  
-void init_performance();
24  
-void open_performance_window();
  23
+void init_performance(void);
  24
+void open_performance_window(void);
25 25
 void start_performance(int simple, int dt, int as);
26 26
 
27 27
 #endif /* __PERFORMANCE_H */
14  src/gui/rsswall.c
@@ -36,7 +36,7 @@ static int appid;
36 36
 static int w_open;
37 37
 static int rsswall_enable;
38 38
 
39  
-static void load_config()
  39
+static void load_config(void)
40 40
 {
41 41
 	const char *url, *idle;
42 42
 	
@@ -55,7 +55,7 @@ static void load_config()
55 55
 	mtk_cmdf(appid, "e_idlep.set(-text \"%d\")", config_read_int("rss_idlep", 5));
56 56
 }
57 57
 
58  
-static void set_config()
  58
+static void set_config(void)
59 59
 {
60 60
 	char url[512];
61 61
 	char idle[512];
@@ -70,7 +70,7 @@ static void set_config()
70 70
 	config_write_int("rss_idlep", mtk_req_i(appid, "e_idlep.text"));
71 71
 }
72 72
 
73  
-static void close_window()
  73
+static void close_window(void)
74 74
 {
75 75
 	mtk_cmd(appid, "w.close()");
76 76
 	w_open = 0;
@@ -104,7 +104,7 @@ static void clearidle_callback(mtk_event *e, void *arg)
104 104
 	mtk_cmd(appid, "e_idle.set(-text \"\")");
105 105
 }
106 106
 
107  
-void init_rsswall()
  107
+void init_rsswall(void)
108 108
 {
109 109
 	appid = mtk_init_app("RSS wall");
110 110
 
@@ -168,7 +168,7 @@ void init_rsswall()
168 168
 	mtk_bind(appid, "w", "close", cancel_callback, NULL);
169 169
 }
170 170
 
171  
-void open_rsswall_window()
  171
+void open_rsswall_window(void)
172 172
 {
173 173
 	if(w_open) return;
174 174
 	w_open = 1;
@@ -335,7 +335,7 @@ static rtems_task rsswall_task(rtems_task_argument argument)
335 335
 	rtems_task_delete(RTEMS_SELF);
336 336
 }
337 337
 
338  
-void rsswall_start()
  338
+void rsswall_start(void)
339 339
 {
340 340
 	rtems_status_code sc;
341 341
 	
@@ -369,7 +369,7 @@ void rsswall_start()
369 369
 	rsswall_running = 1;
370 370
 }
371 371
 
372  
-void rsswall_stop()
  372
+void rsswall_stop(void)
373 373
 {
374 374
 	if(!rsswall_running) return;
375 375
 	rtems_event_send(rsswall_task_id, RTEMS_EVENT_1);
8  src/gui/rsswall.h
@@ -18,10 +18,10 @@
18 18
 #ifndef __RSSWALL_H
19 19
 #define __RSSWALL_H
20 20
 
21  
-void init_rsswall();
22  
-void open_rsswall_window();
  21
+void init_rsswall(void);
  22
+void open_rsswall_window(void);
23 23
 
24  
-void rsswall_start();
25  
-void rsswall_stop();
  24
+void rsswall_start(void);
  25
+void rsswall_stop(void);
26 26
 
27 27
 #endif /* __RSSWALL_H */
4  src/gui/shutdown.c
@@ -44,7 +44,7 @@ static void shutdown_callback(mtk_event *e, void *arg)
44 44
 	clean_shutdown(turnoff);
45 45
 }
46 46
 
47  
-void init_shutdown()
  47
+void init_shutdown(void)
48 48
 {
49 49
 	appid = mtk_init_app("Shutdown");
50 50
 	mtk_cmd_seq(appid,
@@ -67,7 +67,7 @@ void init_shutdown()
67 67
 	mtk_bind(appid, "w", "close", cancel_callback, NULL);
68 68
 }
69 69
 
70  
-void open_shutdown_window()
  70
+void open_shutdown_window(void)
71 71
 {
72 72
 	mtk_cmd(appid, "w.open()");
73 73
 }
4  src/gui/shutdown.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __SHUTDOWN_H
19 19
 #define __SHUTDOWN_H
20 20
 
21  
-void init_shutdown();
22  
-void open_shutdown_window();
  21
+void init_shutdown(void);
  22
+void open_shutdown_window(void);
23 23
 
24 24
 void clean_shutdown(int turnoff);
25 25
 
32  src/gui/sysettings.c
@@ -30,10 +30,10 @@ static struct filedialog *browse_wallpaper_dlg;
30 30
 static struct filedialog *browse_autostart_dlg;
31 31
 
32 32
 static void close_sysettings_window(int save);
33  
-static void update_language();
34  
-static void update_layout();
35  
-static void update_network();
36  
-static void update_asmode();
  33
+static void update_language(void);
  34
+static void update_layout(void);
  35
+static void update_network(void);
  36
+static void update_asmode(void);
37 37
 
38 38
 static void resolution_callback(mtk_event *e, void *arg)
39 39
 {
@@ -104,7 +104,7 @@ static void cancel_callback(mtk_event *e, void *arg)
104 104
 	close_sysettings_window(0);
105 105
 }
106 106
 
107  
-static void wallpaper_ok_callback()
  107
+static void wallpaper_ok_callback(void *arg)
108 108
 {
109 109
 	char filename[384];
110 110
 
@@ -112,7 +112,7 @@ static void wallpaper_ok_callback()
112 112
 	mtk_cmdf(appid, "e_wallpaper.set(-text \"%s\")", filename);
113 113
 }
114 114
 
115  
-static void autostart_ok_callback()
  115
+static void autostart_ok_callback(void *arg)
116 116
 {
117 117
 	char filename[384];
118 118
 
@@ -135,7 +135,7 @@ static void clear_wallpaper_callback(mtk_event *e, void *arg)
135 135
 	mtk_cmd(appid, "e_wallpaper.set(-text \"\")");
136 136
 }
137 137
 
138  
-void init_sysettings()
  138
+void init_sysettings(void)
139 139
 {
140 140
 	appid = mtk_init_app("System settings");
141 141
 
@@ -332,7 +332,7 @@ void init_sysettings()
332 332
 	browse_autostart_dlg = create_filedialog("Select autostart performance", 0, "per", autostart_ok_callback, NULL, NULL, NULL);
333 333
 }
334 334
 
335  
-void sysettings_update_resolution()
  335
+void sysettings_update_resolution(void)
336 336
 {
337 337
 	int resolution;
338 338
 
@@ -343,7 +343,7 @@ void sysettings_update_resolution()
343 343
 	mtk_cmdf(appid, "b_res_1024.set(-state %s)", resolution == SC_RESOLUTION_1024_768 ? "on" : "off");
344 344
 }
345 345
 
346  
-static void update_wallpaper()
  346
+static void update_wallpaper(void)
347 347
 {
348 348
 	char wallpaper[256];
349 349
 
@@ -351,7 +351,7 @@ static void update_wallpaper()
351 351
 	mtk_cmdf(appid, "e_wallpaper.set(-text \"%s\")", wallpaper);
352 352
 }
353 353
 
354  
-static void update_language()
  354
+static void update_language(void)
355 355
 {
356 356
 	int language;
357 357
 	
@@ -362,7 +362,7 @@ static void update_language()
362 362
 	//mtk_cmdf(appid, "b_lang_german.set(-state %s)", language == SC_LANGUAGE_GERMAN ? "on" : "off");
363 363
 }
364 364
 
365  
-static void update_layout()
  365
+static void update_layout(void)
366 366
 {
367 367
 	int layout;
368 368
 
@@ -373,7 +373,7 @@ static void update_layout()
373 373
 	mtk_cmdf(appid, "b_kbd_german.set(-state %s)", layout == SC_KEYBOARD_LAYOUT_GERMAN ? "on" : "off");
374 374
 }
375 375
 
376  
-static void update_network()
  376
+static void update_network(void)
377 377
 {
378 378
 	int dhcp_enable;
379 379
 	unsigned int ip;
@@ -425,7 +425,7 @@ static void update_network()
425 425
 	mtk_cmdf(appid, "e_dns.set(-readonly %s)", dhcp_enable ? "yes" : "no");
426 426
 }
427 427
 
428  
-static void update_credentials()
  428
+static void update_credentials(void)
429 429
 {
430 430
 	char login[32];
431 431
 	char password[32];
@@ -435,7 +435,7 @@ static void update_credentials()
435 435
 	mtk_cmdf(appid, "e_password.set(-text \"%s\")", password);
436 436
 }
437 437
 
438  
-static void update_asmode()
  438
+static void update_asmode(void)
439 439
 {
440 440
 	mtk_cmdf(appid, "b_asmode_none.set(-state %s)", current_asmode == SC_AUTOSTART_NONE ? "on" : "off");
441 441
 	mtk_cmdf(appid, "b_asmode_simple.set(-state %s)", current_asmode == SC_AUTOSTART_SIMPLE ? "on" : "off");
@@ -444,7 +444,7 @@ static void update_asmode()
444 444
 	mtk_cmdf(appid, "b_asmode_as.set(-state %s)", current_asmode_as ? "on" : "off");
445 445
 }
446 446
 
447  
-static void update_autostart()
  447
+static void update_autostart(void)
448 448
 {
449 449
 	char autostart[256];
450 450
 
@@ -477,7 +477,7 @@ static int previous_layout;
477 477
 static int previous_dhcp;
478 478
 static unsigned int previous_ip, previous_netmask, previous_gateway, previous_dns1, previous_dns2;
479 479
 
480  
-void open_sysettings_window()
  480
+void open_sysettings_window(void)
481 481
 {
482 482
 	if(w_open) return;
483 483
 	w_open = 1;
6  src/gui/sysettings.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __SYSETTINGS_H
19 19
 #define __SYSETTINGS_H
20 20
 
21  
-void init_sysettings();
22  
-void open_sysettings_window();
23  
-void sysettings_update_resolution();
  21
+void init_sysettings(void);
  22
+void open_sysettings_window(void);
  23
+void sysettings_update_resolution(void);
24 24
 
25 25
 #endif /* __SYSETTINGS_H */
10  src/gui/videoin.c
@@ -114,7 +114,7 @@ static void format_callback(mtk_event *e, void *arg)
114 114
 	set_format((int)arg);
115 115
 }
116 116
 
117  
-void load_videoin_config()
  117
+void load_videoin_config(void)
118 118
 {
119 119
 	set_format(config_read_int("vin_format", VIDEO_FORMAT_CVBS6));
120 120
 
@@ -127,7 +127,7 @@ void load_videoin_config()
127 127
 	mtk_cmdf(appid, "s_hue.set(-value %d)", hue);
128 128
 }
129 129
 
130  
-static void set_config()
  130
+static void set_config(void)
131 131
 {
132 132
 	config_write_int("vin_format", format);
133 133
 	config_write_int("vin_brightness", brightness);
@@ -183,7 +183,7 @@ static void preview_update(mtk_event *e, int count)
183 183
 	}
184 184
 }
185 185
 
186  
-static void close_videoin_window()
  186
+static void close_videoin_window(void)
187 187
 {
188 188
 	input_delete_callback(preview_update);
189 189
 	mtk_cmd(appid, "w.close()");
@@ -204,7 +204,7 @@ static void close_callback(mtk_event *e, void *arg)
204 204
 	close_videoin_window();
205 205
 }
206 206
 
207  
-void init_videoin()
  207
+void init_videoin(void)
208 208
 {
209 209
 	appid = mtk_init_app("Video in");
210 210
 
@@ -308,7 +308,7 @@ void init_videoin()
308 308
 	mtk_bind(appid, "w", "close", close_callback, NULL);
309 309
 }
310 310
 
311  
-void open_videoin_window()
  311
+void open_videoin_window(void)
312 312
 {
313 313
 	if(w_open) return;
314 314
 
6  src/gui/videoin.h
@@ -18,8 +18,8 @@
18 18
 #ifndef __VIDEOIN_H
19 19
 #define __VIDEOIN_H
20 20
 
21  
-void init_videoin();
22  
-void open_videoin_window();
23  
-void load_videoin_config();
  21
+void init_videoin(void);
  22
+void open_videoin_window(void);
  23
+void load_videoin_config(void);
24 24
 
25 25
 #endif /* __VIDEOIN_H */
4  src/input.c
@@ -327,7 +327,7 @@ static void start_event_task(const char *dev, rtems_name name, int *fd)
327 327
 
328 328
 static input_callback callbacks[MAX_CALLBACKS];
329 329
 
330  
-void init_input(input_callback cb)
  330
+void init_input(void)
331 331
 {
332 332
 	rtems_status_code sc;
333 333
 	int i;
@@ -373,7 +373,7 @@ void input_delete_callback(input_callback cb)
373 373
 /* The maximum number of mtk_events that can be generated out of a single message on input_q */
374 374
 #define WORST_CASE_EVENTS 20
375 375
 
376  
-void input_eventloop()
  376
+void input_eventloop(void)
377 377
 {
378 378
 	mtk_event e[MAX_EVENTS];
379 379
 	int total, n;
4  src/input.h
@@ -29,10 +29,10 @@
29 29
 
30 30
 typedef void (*input_callback)(mtk_event *e, int count);
31 31
 
32  
-void init_input();
  32
+void init_input(void);
33 33
 void input_add_callback(input_callback cb);
34 34
 void input_delete_callback(input_callback cb);
35  
-void input_eventloop();
  35
+void input_eventloop(void);
36 36
 
37 37
 void input_inject_midi(const unsigned char *msg);
38 38
 void input_inject_osc(unsigned char msg);
2  src/main.c
@@ -153,6 +153,8 @@ static rtems_id gui_task_id;
153 153
 	mount("/dev/memcard1", "/memcard", "dosfs", RTEMS_FILESYSTEM_READ_ONLY, "");
154 154
 }*/
155 155
 
  156
+rtems_task Init(rtems_task_argument argument);
  157
+
156 158
 rtems_task Init(rtems_task_argument argument)
157 159
 {
158 160
 	rtems_status_code sc;
2  src/osc.c
@@ -160,7 +160,7 @@ static rtems_task osc_task(rtems_task_argument argument)
160 160
 
161 161
 static rtems_id osc_task_id;
162 162
 
163  
-void init_osc()
  163
+void init_osc(void)
164