diff options
Diffstat (limited to 'src/lib/util.c')
-rw-r--r-- | src/lib/util.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lib/util.c b/src/lib/util.c index c82358c5..0441a4f4 100644 --- a/src/lib/util.c +++ b/src/lib/util.c @@ -66,8 +66,8 @@ checker(int code, int lineNumber, char *errorStr) -char * -getmemWithLine(int nbytes, char *str, int lineNum) +const char* +getmemWithLine(int nbytes, const char* str, int lineNum) { char *p; @@ -80,14 +80,10 @@ getmemWithLine(int nbytes, char *str, int lineNum) } -char * -saymemWithLine(char *str, int num, int size, int lineNum) +const char * +saymemWithLine(const char *str, int num, int size, int lineNum) { - char *p; - - p = getmemWithLine(num * size, str, lineNum); - return p; - + return getmemWithLine(num * size, str, lineNum); } |