From 2bee23495cfc1ae19121e1d544e6a7bd6c2e86f3 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Thu, 30 Apr 2015 09:21:10 +0000
Subject: [PATCH] Sebastian Held patches15/0016-const-correctness.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7318 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair2/UTIL/LOG/log.c    | 4 ++--
 openair2/UTIL/LOG/log_if.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/openair2/UTIL/LOG/log.c b/openair2/UTIL/LOG/log.c
index dc4a9284f6..429dce8587 100755
--- a/openair2/UTIL/LOG/log.c
+++ b/openair2/UTIL/LOG/log.c
@@ -461,7 +461,7 @@ int logInit (void)
 
 //log record: add to a list
 void logRecord(const char *file, const char *func, int line,  int comp,
-               int level, char *format, ...)
+               int level, const char *format, ...)
 {
   va_list    args;
   LOG_params log_params;
@@ -676,7 +676,7 @@ void *log_thread_function(void *list)
 
 //log record, format, and print:  executed in the main thread (mt)
 void logRecord_mt(const char *file, const char *func, int line, int comp,
-                  int level, char *format, ...)
+                  int level, const char *format, ...)
 {
   int len = 0;
   va_list args;
diff --git a/openair2/UTIL/LOG/log_if.h b/openair2/UTIL/LOG/log_if.h
index 6f1c02be6f..b286d027aa 100644
--- a/openair2/UTIL/LOG/log_if.h
+++ b/openair2/UTIL/LOG/log_if.h
@@ -68,8 +68,8 @@ extern "C" {
 //public_log_if( log_t *g_log;)
 
 public_log_if( int logInit (void);)
-public_log_if( void logRecord_mt(const char *file, const char *func, int line,int comp, int level, char *format, ...);)
-public_log_if( void logRecord(const char *file, const char *func, int line,int comp, int level, char *format, ...);)
+public_log_if( void logRecord_mt(const char *file, const char *func, int line,int comp, int level, const char *format, ...);)
+public_log_if( void logRecord(const char *file, const char *func, int line,int comp, int level, const char *format, ...);)
 public_log_if( int set_comp_log(int component, int level, int verbosity, int interval);)
 public_log_if( int  set_log(int component, int level, int interval);)
 public_log_if( void set_glog(int level, int verbosity);)
-- 
GitLab