summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
committerPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
commitbe009b9a889f4c58f69b4fb4bd8f5e98b9700555 (patch)
tree5e6c7f534a34aa90f3da9b522cfa31ab4181b3d3 /read.c
parent2eb63e6e43b290e84a279b24d5fcb13f2ff0cf58 (diff)
downloadmake-be009b9a889f4c58f69b4fb4bd8f5e98b9700555.tar.gz
* maintMakefile, various: Improve constification of the codebase.
Diffstat (limited to 'read.c')
-rw-r--r--read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/read.c b/read.c
index b408c24d..efacaf50 100644
--- a/read.c
+++ b/read.c
@@ -238,7 +238,7 @@ read_all_makefiles (const char **makefiles)
if (num_makefiles == 0)
{
- static char *default_makefiles[] =
+ static const char *default_makefiles[] =
#ifdef VMS
/* all lower case since readdir() (the vms version) 'lowercasifies' */
{ "makefile.vms", "gnumakefile.", "makefile.", 0 };
@@ -249,7 +249,7 @@ read_all_makefiles (const char **makefiles)
{ "GNUmakefile", "makefile", "Makefile", 0 };
#endif /* AMIGA */
#endif /* VMS */
- register char **p = default_makefiles;
+ const char **p = default_makefiles;
while (*p != 0 && !file_exists_p (*p))
++p;
@@ -1572,7 +1572,7 @@ do_define (char *name, enum variable_origin origin, struct ebuffer *ebuf)
static int
conditional_line (char *line, int len, const gmk_floc *flocp)
{
- char *cmdname;
+ const char *cmdname;
enum { c_ifdef, c_ifndef, c_ifeq, c_ifneq, c_else, c_endif } cmdtype;
unsigned int i;
unsigned int o;