From b678e3c5d3ed36f3cfc855b60223a4052f93173f Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Thu, 15 May 2014 14:03:42 +0200 Subject: [PATCH] Added a const to API function add_predefine. --- src/cpp.c | 2 +- src/cpp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp.c b/src/cpp.c index d19d04c6b6..d7ecec95ec 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -3593,7 +3593,7 @@ void init_cpp() } -void add_predefine(char *s) +void add_predefine(const char *s) { struct pike_predef_s *tmp=ALLOC_STRUCT(pike_predef_s); char * pos=STRCHR(s,'='); diff --git a/src/cpp.h b/src/cpp.h index 700cc813e1..ed5c8e8ae4 100644 --- a/src/cpp.h +++ b/src/cpp.h @@ -15,7 +15,7 @@ struct hash_entry; /* Prototypes begin here */ void f_cpp(INT32 args); void init_cpp(void); -void add_predefine(char *s); +void add_predefine(const char *s); void exit_cpp(void); /* Prototypes end here */ #endif -- GitLab