summaryrefslogtreecommitdiff
path: root/dumb/dumb-kode54
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-30 12:00:57 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-30 12:00:57 +0100
commitf60cbf373f9f9f3dfb65dc1766d348dc0efce8d8 (patch)
tree5487efc8f1c2325acbd9ae447b6ff7e1313cd62e /dumb/dumb-kode54
parent09ed449eb2aec5ca2213e91addcf0bf80f205d44 (diff)
fixed few gcc warnings in DUMB code
Diffstat (limited to 'dumb/dumb-kode54')
-rw-r--r--dumb/dumb-kode54/include/dumb.h2
-rw-r--r--dumb/dumb-kode54/src/core/dumbfile.c2
-rw-r--r--dumb/dumb-kode54/src/helpers/stdfile.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/dumb/dumb-kode54/include/dumb.h b/dumb/dumb-kode54/include/dumb.h
index d6e0745c..63718e1e 100644
--- a/dumb/dumb-kode54/include/dumb.h
+++ b/dumb/dumb-kode54/include/dumb.h
@@ -165,7 +165,7 @@ DUMBFILE_SYSTEM;
typedef struct DUMBFILE DUMBFILE;
-void register_dumbfile_system(const DUMBFILE_SYSTEM *dfs);
+void register_dumbfile_system(DUMBFILE_SYSTEM *dfs);
DUMBFILE *dumbfile_open(const char *filename);
DUMBFILE *dumbfile_open_ex(void *file, DUMBFILE_SYSTEM *dfs);
diff --git a/dumb/dumb-kode54/src/core/dumbfile.c b/dumb/dumb-kode54/src/core/dumbfile.c
index 4c5547a5..ae738bf7 100644
--- a/dumb/dumb-kode54/src/core/dumbfile.c
+++ b/dumb/dumb-kode54/src/core/dumbfile.c
@@ -27,7 +27,7 @@ static DUMBFILE_SYSTEM *the_dfs = NULL;
-void register_dumbfile_system(const DUMBFILE_SYSTEM *dfs)
+void register_dumbfile_system(DUMBFILE_SYSTEM *dfs)
{
ASSERT(dfs);
ASSERT(dfs->open);
diff --git a/dumb/dumb-kode54/src/helpers/stdfile.c b/dumb/dumb-kode54/src/helpers/stdfile.c
index c4cd5b3a..aa398f50 100644
--- a/dumb/dumb-kode54/src/helpers/stdfile.c
+++ b/dumb/dumb-kode54/src/helpers/stdfile.c
@@ -58,7 +58,7 @@ static void dumb_stdfile_close(void *f)
-static const DUMBFILE_SYSTEM stdfile_dfs = {
+static DUMBFILE_SYSTEM stdfile_dfs = {
&dumb_stdfile_open,
&dumb_stdfile_skip,
&dumb_stdfile_getc,
@@ -75,7 +75,7 @@ void dumb_register_stdfiles(void)
-static const DUMBFILE_SYSTEM stdfile_dfs_leave_open = {
+static DUMBFILE_SYSTEM stdfile_dfs_leave_open = {
NULL,
&dumb_stdfile_skip,
&dumb_stdfile_getc,