From c0c618c4acb9aa6697c94e877a9a815714643d17 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Fri, 10 Mar 2000 01:30:37 +0000 Subject: [PATCH] * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing initializers from arguments (some compilers don't like this). --- ChangeLog | 5 +++++ src/libs/libgroff/tmpfile.cc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c551181..fa74b9f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-03-10 Werner LEMBERG + + * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing + initializers from arguments (some compilers don't like this). + 2000-03-09 Gaius Mulley * 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 5ed1c5ee..640b2542 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) -- 2.11.4.GIT