aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-09 17:48:28 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-09 17:52:25 +0200
commit34f094312fc2e9dce7621449e07f25c748039f97 (patch)
tree9288b738318949c05a24adc0affa19a5368c3af1 /src/calcurse.h
parent585ed53748099de4f3c78bb03ccd89ca28353195 (diff)
downloadcalcurse-34f094312fc2e9dce7621449e07f25c748039f97.tar.gz
calcurse-34f094312fc2e9dce7621449e07f25c748039f97.zip
Honor "TMPDIR" environment variable
Replace all hardcoded paths referring to "/tmp" with a new function that honors the "TMPDIR" environment variable as well as P_tmpdir and uses "/tmp" as a fallback. Thanks-to: Erik Saule <esaule@bmi.osu.edu> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 6642ae9..e3822ef 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -854,6 +854,7 @@ long now (void);
char *nowstr (void);
long mystrtol (const char *);
void print_bool_option_incolor (WINDOW *, unsigned, int, int);
+const char *get_tempdir (void);
char *new_tempfile (const char *, int);
void erase_note (char **, enum eraseflg);
int parse_date (char *, enum datefmt, int *, int *, int *,