From 5989783822c48fe260bc896ad418ff9de787e50e Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 11 Feb 2010 10:03:38 +0000 Subject: [PATCH] output_str()'s char * parameter is actually const, so mark it as const char *. --- NYTProf.h | 2 +- NYTProf.xs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NYTProf.h b/NYTProf.h index 46b4df4..d2d6d9b 100644 --- a/NYTProf.h +++ b/NYTProf.h @@ -21,7 +21,7 @@ and these 3 return to being static functions, within that library. */ size_t output_tag_int(NYTP_file file, unsigned char tag, unsigned int); -size_t output_str(NYTP_file file, char *str, I32 len); +size_t output_str(NYTP_file file, const char *str, I32 len); size_t output_nv(NYTP_file file, NV nv); #define NYTP_TAG_NO_TAG '\0' /* Used as a flag to mean "no tag" */ diff --git a/NYTProf.xs b/NYTProf.xs index dfd24a6..28e4edd 100644 --- a/NYTProf.xs +++ b/NYTProf.xs @@ -473,7 +473,7 @@ output_header(pTHX) size_t -output_str(NYTP_file file, char *str, I32 len) { /* negative len signifies utf8 */ +output_str(NYTP_file file, const char *str, I32 len) { /* negative len signifies utf8 */ unsigned char tag = NYTP_TAG_STRING; size_t retval; size_t total; -- 1.6.0