fix -Wstrict-prototypes

This commit is contained in:
2025-07-10 00:57:52 +08:00
parent 008360df36
commit 45ed380e7c
2 changed files with 4 additions and 4 deletions

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");

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 ==========================================