浏览代码

symbollib: S_read -> const char *

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47486 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
07e9940a35
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/symbol.h
  2. 1 1
      lib/symbol/read.c

+ 1 - 1
include/symbol.h

@@ -72,7 +72,7 @@ typedef struct
 } SYMBOL;
 } SYMBOL;
 
 
 /* prototypes */
 /* prototypes */
-SYMBOL *S_read(char *sname);
+SYMBOL *S_read(const char *sname);
 void S_stroke(SYMBOL * symb, double size, double rotation, int tolerance);
 void S_stroke(SYMBOL * symb, double size, double rotation, int tolerance);
 
 
 #endif
 #endif

+ 1 - 1
lib/symbol/read.c

@@ -232,7 +232,7 @@ SYMBOL *err(FILE * fp, SYMBOL * s, char *msg)
  *  S_read() searches first in mapsets (standard GRASS search) and
  *  S_read() searches first in mapsets (standard GRASS search) and
  *   then in GISBASE/etc/symbol/ 
  *   then in GISBASE/etc/symbol/ 
  */
  */
-SYMBOL *S_read(char *sname)
+SYMBOL *S_read(const char *sname)
 {
 {
     int i, j, k, l;
     int i, j, k, l;
     FILE *fp;
     FILE *fp;