[liblouis-liblouisxml] [liblouis] r1164 committed - Another warning fix

  • From: liblouis@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 06 May 2014 09:15:50 +0000

Revision: 1164
Author:   mwhapples@xxxxxxxxx
Date:     Tue May  6 09:15:32 2014 UTC
Log:      Another warning fix
http://code.google.com/p/liblouis/source/detail?r=1164

Modified:
 /trunk/liblouis/compileTranslationTable.c
 /trunk/liblouis/lou_translateString.c
 /trunk/liblouis/louis.h

=======================================
--- /trunk/liblouis/compileTranslationTable.c   Tue May  6 08:27:43 2014 UTC
+++ /trunk/liblouis/compileTranslationTable.c   Tue May  6 09:15:32 2014 UTC
@@ -5214,7 +5214,7 @@
     }
 }

-void logWidecharBuf(logLevels level, const char *msg, widechar *wbuf, int wlen) +void logWidecharBuf(logLevels level, const char *msg, const widechar *wbuf, int wlen)
 {
   /* When calculating output size:
    * Each wdiechar is represented in hex, thus needing two bytes for each
=======================================
--- /trunk/liblouis/lou_translateString.c       Mon Apr 28 09:25:53 2014 UTC
+++ /trunk/liblouis/lou_translateString.c       Tue May  6 09:15:32 2014 UTC
@@ -274,7 +274,7 @@
   if (rulesLen != NULL)
     *rulesLen = appliedRulesCount;
   lou_log(LOG_INFO, "Translation complete: outlen=%d", *outlen);
-  logWidecharBuf(LOG_INFO, "Outbuf=", outbuf, *outlen);
+  logWidecharBuf(LOG_INFO, "Outbuf=", (const widechar *)outbuf, *outlen);
   return goodTrans;
 }

=======================================
--- /trunk/liblouis/louis.h     Mon Apr 28 09:25:53 2014 UTC
+++ /trunk/liblouis/louis.h     Tue May  6 09:15:32 2014 UTC
@@ -565,7 +565,7 @@
 void outOfMemory ();
 /* Priknts an out-of-memory message and exits*/

-void logWidecharBuf(int level, const char *msg, widechar *wbuf, int wlen);
+void logWidecharBuf(int level, const char *msg, const widechar *wbuf, int wlen);
 /* Helper for logging a widechar buffer */

 #ifdef __cplusplus
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouis] r1164 committed - Another warning fix - liblouis