Fixed unconst() types.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3696 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2011-10-01 14:15:35 +00:00
parent 094c7d6e15
commit e37fd2c51f
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ static inline void explode (void)
static inline void *
unconst(const void *arg) {
union {
char *c;
const char *cc;
void *c;
const void *cc;
} u;
u.cc = arg;
return u.c;
+2 -2
View File
@@ -44,8 +44,8 @@ char *dosToUnixPath(const char *path);
static inline void *
unconst(const void *arg) {
union {
char *c;
const char *cc;
void *c;
const void *cc;
} u;
u.cc = arg;
return u.c;