summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/checkers.cxx4
-rw-r--r--test/file_chooser.cxx3
2 files changed, 4 insertions, 3 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx
index b9adf95b2..0a0972ada 100644
--- a/test/checkers.cxx
+++ b/test/checkers.cxx
@@ -6,7 +6,7 @@
// Hours of fun: the FLTK checkers game!
// Based on a very old algorithm, but it still works!
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -1346,7 +1346,7 @@ int main(int argc, char **argv) {
fprintf(stderr," -t : use VT100 display\n", Fl::help);
exit(1);
}
- if (!getenv("DISPLAY")) terminal = 1;
+ if (!fl_getenv("DISPLAY")) terminal = 1;
if (!terminal)
#endif
#ifdef FLTK
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx
index f099b8c78..12f43f0c1 100644
--- a/test/file_chooser.cxx
+++ b/test/file_chooser.cxx
@@ -4,6 +4,7 @@
// File chooser test program.
//
// Copyright 1999-2010 by Michael Sweet.
+// Copyright 2011-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -256,7 +257,7 @@ pdf_check(const char *name, // I - Name of file
if (memcmp(header, "%PDF", 4) != 0)
return 0;
- home = getenv("HOME");
+ home = fl_getenv("HOME");
sprintf(preview, "%s/.preview.ppm", home ? home : "");
sprintf(command,