aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2001-12-22 15:54:12 +0000
committerDavid Shaw <[email protected]>2001-12-22 15:54:12 +0000
commit97d3149e92c3eb8c471092453c97a46ddc2c0bf2 (patch)
treefa3009c38ea9d4634b8e4b0b91a30fd452ee8d8a
parentSome last minute tweaks - type fixes from Stefan and win32 temp files (diff)
downloadgnupg-97d3149e92c3eb8c471092453c97a46ddc2c0bf2.tar.gz
gnupg-97d3149e92c3eb8c471092453c97a46ddc2c0bf2.zip
Avoid const compiler warning
-rw-r--r--g10/ChangeLog2
-rw-r--r--g10/exec.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 2691716e3..636b20254 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,7 @@
2001-12-22 David Shaw <[email protected]>
+ * exec.c (make_tempdir): avoid compiler warning with const
+
* mkdtemp.c (mkdtemp): catch the empty ("") string case in case
someone repurposes mkdtemp at some point.
diff --git a/g10/exec.c b/g10/exec.c
index 652ed456e..09fe67ca4 100644
--- a/g10/exec.c
+++ b/g10/exec.c
@@ -43,7 +43,7 @@ char *mkdtemp(char *template);
/* Makes a temp directory and filenames */
static int make_tempdir(struct exec_info *info)
{
- const char *tmp=opt.temp_dir;
+ char *tmp=opt.temp_dir;
/* Make up the temp dir and files in case we need them */
if(tmp==NULL)