diff --git a/common/utils/LOG/log.c b/common/utils/LOG/log.c index 1fe2280c15..91c97ac1ac 100644 --- a/common/utils/LOG/log.c +++ b/common/utils/LOG/log.c @@ -145,7 +145,13 @@ static const char *const log_level_highlight_end[] = {LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET}; /*!< \brief Optional end-format strings for highlighting */ static void log_output_memory(log_component_t *c, const char *file, const char *func, int line, int comp, int level, const char* format,va_list args); -int write_file_matlab(const char *fname, const char *vname, void *data, int length, int dec, unsigned int format, int multiVec) +int write_file_matlab(const char *fname, + const char *vname, + const void *data, + int length, + int dec, + unsigned int format, + int multiVec) { FILE *fp=NULL; int i; diff --git a/common/utils/LOG/log.h b/common/utils/LOG/log.h index 1f7474253c..a8c7becfdf 100644 --- a/common/utils/LOG/log.h +++ b/common/utils/LOG/log.h @@ -316,8 +316,14 @@ void close_log_mem(void); #define MATLAB_CSHORT_BRACKET1 13 #define MATLAB_CSHORT_BRACKET2 14 #define MATLAB_CSHORT_BRACKET3 15 - -int32_t write_file_matlab(const char *fname, const char *vname, void *data, int length, int dec, unsigned int format, int multiVec); + +int32_t write_file_matlab(const char *fname, + const char *vname, + const void *data, + int length, + int dec, + unsigned int format, + int multiVec); #define write_output(a, b, c, d, e, f) write_file_matlab(a, b, c, d, e, f, 0) /*----------------macro definitions for reading log configuration from the config module */