浏览代码

libgis: G__tempfile() -> G_tempfile_pid()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63849 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父节点
当前提交
08782176b6
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      include/defs/gis.h
  2. 2 2
      lib/gis/tempfile.c

+ 1 - 1
include/defs/gis.h

@@ -656,7 +656,7 @@ char *G_strcasestr(const char *, const char *);
 /* tempfile.c */
 void G_init_tempfile(void);
 char *G_tempfile(void);
-char *G__tempfile(int);
+char *G_tempfile_pid(int);
 void G_temp_element(char *);
 
 /* mkstemp.c */

+ 2 - 2
lib/gis/tempfile.c

@@ -57,7 +57,7 @@ void G_init_tempfile(void)
  */
 char *G_tempfile(void)
 {
-    return G__tempfile(getpid());
+    return G_tempfile_pid(getpid());
 }
 
 /*!
@@ -68,7 +68,7 @@ char *G_tempfile(void)
  * \param pid
  * \return pointer to string path
  */
-char *G__tempfile(int pid)
+char *G_tempfile_pid(int pid)
 {
     char path[GPATH_MAX];
     char name[GNAME_MAX];