From f06806a5bd22e35f52fef2a54d161a98dae84f50 Mon Sep 17 00:00:00 2001
From: Arne Goedeke <el@laramies.com>
Date: Fri, 30 May 2014 15:08:40 +0200
Subject: [PATCH] check_size_shift: added const

---
 src/stralloc.c | 2 +-
 src/stralloc.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/stralloc.c b/src/stralloc.c
index e9aca391ae..6679a8c715 100644
--- a/src/stralloc.c
+++ b/src/stralloc.c
@@ -253,7 +253,7 @@ void low_set_index(struct pike_string *s, ptrdiff_t pos, int value)
 }
 
 #ifdef PIKE_DEBUG
-PMOD_EXPORT struct pike_string *debug_check_size_shift(struct pike_string *a,
+PMOD_EXPORT struct pike_string *debug_check_size_shift(const struct pike_string *a,
 						       int shift)
 {
   if(a->size_shift != shift)
diff --git a/src/stralloc.h b/src/stralloc.h
index 56681599be..fa2e000ed1 100644
--- a/src/stralloc.h
+++ b/src/stralloc.h
@@ -288,7 +288,7 @@ PMOD_EXPORT extern struct pike_string *empty_pike_string;
 
 /* Prototypes begin here */
 void low_set_index(struct pike_string *s, ptrdiff_t pos, int value);
-PMOD_EXPORT struct pike_string *debug_check_size_shift(struct pike_string *a,int shift);
+PMOD_EXPORT struct pike_string *debug_check_size_shift(const struct pike_string *a,int shift);
 CONVERT(0,1)
 CONVERT(0,2)
 CONVERT(1,0)
-- 
GitLab