Browse Source

Change char * -> const char *
Set svn:ignore property


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31941 15284696-431f-4ddb-bdfa-cd5b030d7da7

Glynn Clements 17 years ago
parent
commit
84d0fcef40
4 changed files with 9 additions and 9 deletions
  1. 4 4
      include/ogsf_proto.h
  2. 1 1
      lib/ogsf/gsd_img_mpeg.c
  3. 2 2
      lib/ogsf/gsd_img_ppm.c
  4. 2 2
      lib/ogsf/gsd_img_tif.c

+ 4 - 4
include/ogsf_proto.h

@@ -195,7 +195,7 @@ void GS_clear(int);
 double GS_get_aspect(void);
 int GS_has_transparency(void);
 void GS_zoom_setup(int *, int *, int *, int *, int *, int *);
-int GS_write_zoom(char *, unsigned int, unsigned int);
+int GS_write_zoom(const char *, unsigned int, unsigned int);
 void GS_draw_all_list(void);
 void GS_delete_list(GLuint);
 int GS_draw_legend(char *, GLuint, int, int *, float *, int *);
@@ -462,13 +462,13 @@ void do_label_display(GLuint, float *, char *);
 int get_txtxoffset();
 
 /* From gsd_img_ppm.c */
-int GS_write_ppm(char *);
-int gsd_init_mpeg(char *);
+int GS_write_ppm(const char *);
+int gsd_init_mpeg(const char *);
 int gsd_write_mpegframe(void);
 int gsd_close_mpeg(void);
 
 /* From gsd_img_tif.c */
-int GS_write_tif(char *);
+int GS_write_tif(const char *);
 
 /* From gsd_label.c */
 void gs_put_label(char *, GLuint , int , unsigned long, int *);

+ 1 - 1
lib/ogsf/gsd_img_mpeg.c

@@ -274,7 +274,7 @@ static void close_video(AVFormatContext *oc, AVStream *st)
  \return -1 on failure
  \return 0 on success
 */
-int gsd_init_mpeg(char *filename)
+int gsd_init_mpeg(const char *filename)
 {
 #ifdef HAVE_FFMPEG
 	GLuint l, r, b, t;

+ 2 - 2
lib/ogsf/gsd_img_ppm.c

@@ -39,7 +39,7 @@
   \return 1 on failure
   \return 0 on success
 */
-int GS_write_ppm(char *name)
+int GS_write_ppm(const char *name)
 {
     unsigned int x;
     int y;
@@ -84,7 +84,7 @@ int GS_write_ppm(char *name)
   \return 1 on failure
   \return 0 on success
 */
-int GS_write_zoom(char *name, unsigned int xsize, unsigned int ysize)
+int GS_write_zoom(const char *name, unsigned int xsize, unsigned int ysize)
 {
     unsigned int x;
     int y;

+ 2 - 2
lib/ogsf/gsd_img_tif.c

@@ -34,7 +34,7 @@
 #include <grass/gstypes.h>
 #include <grass/glocale.h>
 
-#include "tiffio.h"
+#include <tiffio.h>
 
 unsigned short config = PLANARCONFIG_CONTIG;
 unsigned short compression = -1;
@@ -48,7 +48,7 @@ unsigned short rowsperstrip = 0;
   \return 1 on error
   \return 0 on success
 */
-int GS_write_tif(char *name)
+int GS_write_tif(const char *name)
 {
     TIFF *out;
     int y, x;