projects
/
fishladder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some maps, update QOI, fix bug/UB with too many fishes
[fishladder.git]
/
vg
/
vg_console.h
diff --git
a/vg/vg_console.h
b/vg/vg_console.h
index 23b4480c2b46a0fa1de59c8535ff83abf4d52662..612e81552e1465d543decad078d54dcde617f48f 100644
(file)
--- a/
vg/vg_console.h
+++ b/
vg/vg_console.h
@@
-25,7
+25,7
@@
struct vg_console
struct vg_cmd
{
struct vg_cmd
{
-
void (*function)( int argc, char
*argv[] );
+
int (*function)( int argc, char const
*argv[] );
const char *name;
}
*functions;
const char *name;
}
*functions;
@@
-139,7
+139,7
@@
static void vg_console_free(void)
static void execute_console_input( const char *cmd )
{
char temp[512];
static void execute_console_input( const char *cmd )
{
char temp[512];
- char *args[9];
+ char
const
*args[9];
int arg_count = 0;
int in_token = 0;
int arg_count = 0;
int in_token = 0;