[1.5] Fix a warning about conversion from const char* to char*
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 1 Mar 2012 15:39:44 +0000 (15:39 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 1 Mar 2012 15:39:44 +0000 (15:39 +0000)
applications/jpip/libopenjpip/jpipstream_manager.c
applications/jpip/libopenjpip/jpipstream_manager.h

index 9a5f91fe34f2b8ad428ef14fb16239e4e4ceeff8..daedd377dcb9435a9abc9873fa81d4d01956b19a 100644 (file)
@@ -52,7 +52,7 @@ Byte_t * update_JPIPstream( Byte_t *newstream, int newstreamlen, Byte_t *cache_s
   return stream;
 }
 
-void save_codestream( Byte_t *codestream, Byte8_t streamlen, char *fmt)
+void save_codestream( Byte_t *codestream, Byte8_t streamlen, const char *fmt)
 {
   time_t timer;
   struct tm *t_st;
@@ -74,7 +74,7 @@ void save_codestream( Byte_t *codestream, Byte8_t streamlen, char *fmt)
 Byte_t * jpipstream_to_pnm( Byte_t *jpipstream, msgqueue_param_t *msgqueue, Byte8_t csn, int fw, int fh, ihdrbox_param_t **ihdrbox)
 {
   Byte_t *pnmstream;
-  Byte_t *j2kstream; // j2k or jp2 codestream
+  Byte_t *j2kstream; /* j2k or jp2 codestream */
   Byte8_t j2klen;
 
   j2kstream = recons_j2k( msgqueue, jpipstream, csn, fw, fh, &j2klen); 
index 795ae4a0d65375ab7654dbeed592545e8f1ffb0f..89585a24be8463253fbe6cc10fa33f3c4156e5f4 100644 (file)
@@ -34,7 +34,7 @@
 
 Byte_t * update_JPIPstream( Byte_t *newstream, int newstreamlen, Byte_t *cache_stream, int *streamlen);
 
-void save_codestream( Byte_t *codestream, Byte8_t streamlen, char *fmt);
+void save_codestream( Byte_t *codestream, Byte8_t streamlen, const char *fmt);
 
 Byte_t * jpipstream_to_pnm( Byte_t *jpipstream, msgqueue_param_t *msgqueue, Byte8_t csn, int fw, int fh, ihdrbox_param_t **ihdrbox);