diff --git a/polymer/eduke32/build/src/misc/enumdisplay.c b/polymer/eduke32/build/src/misc/enumdisplay.c index 90c1b86b9..e0e20d413 100644 --- a/polymer/eduke32/build/src/misc/enumdisplay.c +++ b/polymer/eduke32/build/src/misc/enumdisplay.c @@ -6,7 +6,6 @@ #include "compat.h" #define DEFAULT_OUTPUT_FILE "enumdisplay.txt" -char *outputfile = DEFAULT_OUTPUT_FILE; HMODULE hDDrawDLL = NULL; LPDIRECTDRAW lpDD = NULL; @@ -88,6 +87,8 @@ void UninitDirectDraw(void) int main(int argc, char **argv) { + char const * outputfile = DEFAULT_OUTPUT_FILE; + int i; DEVMODE devmode; diff --git a/polymer/eduke32/build/src/misc/getdxdidf.c b/polymer/eduke32/build/src/misc/getdxdidf.c index 3aed884e0..9cf0acc87 100644 --- a/polymer/eduke32/build/src/misc/getdxdidf.c +++ b/polymer/eduke32/build/src/misc/getdxdidf.c @@ -9,7 +9,7 @@ #include #include "compat.h" -char *WhatGUID(const GUID *guid) +char const * WhatGUID(const GUID *guid) { if (guid == &GUID_XAxis) return "&GUID_XAxis"; if (guid == &GUID_YAxis) return "&GUID_YAxis"; diff --git a/polymer/eduke32/build/src/util/cacheinfo.c b/polymer/eduke32/build/src/util/cacheinfo.c index b4913adea..e719eeb6b 100644 --- a/polymer/eduke32/build/src/util/cacheinfo.c +++ b/polymer/eduke32/build/src/util/cacheinfo.c @@ -69,7 +69,7 @@ int main(void) continue; } else { - char *format; + char const * format; char flags[4] = "", flagsc = 0; switch (mip.format) { case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: format = "RGB DXT1"; break; diff --git a/polymer/eduke32/build/src/util/givedepth.c b/polymer/eduke32/build/src/util/givedepth.c index 035c770ce..67ec68dcb 100644 --- a/polymer/eduke32/build/src/util/givedepth.c +++ b/polymer/eduke32/build/src/util/givedepth.c @@ -34,7 +34,7 @@ fail: int main(int argc, char **argv) { - char *palfile = "palette.dat", *voxfile = "output.vox"; + char const * palfile = "palette.dat", * voxfile = "output.vox"; int tilenum; int depth; FILE *artfh, *voxfh, *palfh; diff --git a/polymer/eduke32/build/src/util/kgroup.c b/polymer/eduke32/build/src/util/kgroup.c index e7703d044..34774f766 100644 --- a/polymer/eduke32/build/src/util/kgroup.c +++ b/polymer/eduke32/build/src/util/kgroup.c @@ -21,7 +21,7 @@ static char filespec[MAXFILES][128], filelist[MAXFILES][16]; static int fileleng[MAXFILES]; -static char *matchstr = "*.*"; +static char const * matchstr = "*.*"; int checkmatch(const struct Bdirent *a) { if (a->mode & BS_IFDIR) return 0; // is a directory @@ -46,7 +46,8 @@ void findfiles(const char *dafilespec) { struct Bdirent *name; int daspeclen; - char daspec[128], *dir; + char daspec[128]; + char const * dir; BDIR *di; strcpy(daspec,dafilespec); diff --git a/polymer/eduke32/build/src/util/mkpalette.c b/polymer/eduke32/build/src/util/mkpalette.c index 364506208..ba027cb85 100644 --- a/polymer/eduke32/build/src/util/mkpalette.c +++ b/polymer/eduke32/build/src/util/mkpalette.c @@ -31,7 +31,7 @@ int main(int argc, char **argv) unsigned char rgbout[3]; int idx, step, rampnum; FILE* fh; - char *outfile = "palette.dat"; + char const * outfile = "palette.dat"; memset(palette,0,sizeof(palette)); diff --git a/polymer/eduke32/build/src/util/wad2art.c b/polymer/eduke32/build/src/util/wad2art.c index d83f2be82..cd9d82143 100644 --- a/polymer/eduke32/build/src/util/wad2art.c +++ b/polymer/eduke32/build/src/util/wad2art.c @@ -107,7 +107,7 @@ void savenames(void) } } -void showart (char *part) +void showart (char const * part) { char yoff; short xsiz, ysiz; diff --git a/polymer/eduke32/build/src/util/wad2map.c b/polymer/eduke32/build/src/util/wad2map.c index 6b7d5edb8..a8474edd1 100644 --- a/polymer/eduke32/build/src/util/wad2map.c +++ b/polymer/eduke32/build/src/util/wad2map.c @@ -897,7 +897,7 @@ void setsectorfield(int i, int fieldnum, int newval) } } -int getwadindex(char *nam) +int getwadindex(char const * nam) { int i, j;