summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2000-03-10 01:30:37 +0000
committerWerner LEMBERG <wl@gnu.org>2000-03-10 01:30:37 +0000
commitc0c618c4acb9aa6697c94e877a9a815714643d17 (patch)
tree3880aeedd2d87b6c85c9ad15a6f765029a42df31
parent05cd7ec8ea6fb3c1bad0189e4c6cb25c78d58a64 (diff)
* src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removinggroff-20000310-1
initializers from arguments (some compilers don't like this).
-rw-r--r--ChangeLog5
-rw-r--r--src/libs/libgroff/tmpfile.cc6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c551181c..fa74b9f43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-10 Werner LEMBERG <wl@gnu.org>
+
+ * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
+ initializers from arguments (some compilers don't like this).
+
2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
* src/libs/libgroff/htmlindicate.cc: Added library file which is now
diff --git a/src/libs/libgroff/tmpfile.cc b/src/libs/libgroff/tmpfile.cc
index 5ed1c5eee..640b25424 100644
--- a/src/libs/libgroff/tmpfile.cc
+++ b/src/libs/libgroff/tmpfile.cc
@@ -51,7 +51,7 @@ extern "C" {
* only the *template* is returned.
*/
-char *xtmptemplate(char *postfix=0)
+char *xtmptemplate(char *postfix)
{
const char *dir = getenv(GROFF_TMPDIR_ENVVAR);
int postlen = 0;
@@ -84,7 +84,7 @@ char *xtmptemplate(char *postfix=0)
#ifndef _MSC_VER
-FILE *xtmpfile(char **namep=0, char *postfix=0, int do_unlink=1)
+FILE *xtmpfile(char **namep, char *postfix, int do_unlink)
{
char *templ = xtmptemplate(postfix);
@@ -118,7 +118,7 @@ FILE *xtmpfile(char **namep=0, char *postfix=0, int do_unlink=1)
#else
// If you're not running Unix, the following will do:
-FILE *xtmpfile(char **namep, char *postfix=0, int do_unlink=1)
+FILE *xtmpfile(char **namep, char *postfix, int do_unlink)
{
FILE *fp = tmpfile();
if (!fp)