fix -Wstrict-prototypes

This commit is contained in:
htower committed 2025-07-10 00:57:52 +08:00
1 parent 008360df36
commit 45ed380e7c
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -366,7 +366,7 @@ keycode()
#include <conio.h> #include <conio.h>
int int
keycode() keycode(void)
{ {
int code = -1; int code = -1;
int key = getch(); int key = getch();
@@ -421,7 +421,7 @@ keycode()
#endif #endif
void void
test_keycodes() test_keycodes(void)
{ {
printf("getkeycode() test; press 'q' for exit\n"); printf("getkeycode() test; press 'q' for exit\n");
printf("Press 'q' for exit\n\n"); printf("Press 'q' for exit\n\n");
+2 -2
View File
@@ -5,10 +5,10 @@ extern "C" {
#endif #endif
int int
keycode(); keycode(void);
void void
test_keycodes(); test_keycodes(void);
// key codes ========================================== // key codes ==========================================