summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-26 17:13:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-26 17:13:14 +0200
commit015adf15ca4bb836d199c69e37446b41eeaa745a (patch)
treeef39ff17dbe6e0574d1e7066945fd8a5e655b0a0 /solenv/bin
parente8ac5fecbd1a297220cc2b6969bb40fbc78f19ae (diff)
-Werror,-Wnonconst-parameter
Change-Id: I14c7e2245e1333a7cc3c372b29f4a3b679169209
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/concat-deps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 62b5ff117657..a669dbb4417d 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -677,7 +677,7 @@ int fd;
return buffer;
}
-static void _cancel_relative(char* base, char** ref_cursor, char** ref_cursor_out, char* end)
+static void _cancel_relative(char const * base, char** ref_cursor, char** ref_cursor_out, char const * end)
{
char* cursor = *ref_cursor;
char* cursor_out = *ref_cursor_out;
@@ -853,9 +853,9 @@ static inline char * eat_space_at_end(char * end)
}
static char* phony_content_buffer;
-static inline char* generate_phony_line(char* phony_target, char* extension)
+static inline char* generate_phony_line(char const * phony_target, char const * extension)
{
-char* src;
+char const * src;
char* dest;
char* last_dot = NULL;
//fprintf(stderr, "generate_phony_line called with phony_target %s and extension %s\n", phony_target, extension);
@@ -878,7 +878,7 @@ char* last_dot = NULL;
return phony_content_buffer;
}
-static inline int generate_phony_file(char* fn, char* content)
+static inline int generate_phony_file(char* fn, char const * content)
{
FILE* depfile;
depfile = fopen(fn, "w");