From 34f094312fc2e9dce7621449e07f25c748039f97 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 9 Jul 2011 17:48:28 +0200 Subject: 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 Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/calcurse.h') 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 *, -- cgit v1.2.3