diff options
author | wlemb <wlemb> | 2000-03-10 01:30:36 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-03-10 01:30:36 +0000 |
commit | a6b497222e679a191629137297b0fe37f937cfbb (patch) | |
tree | dc79e1184d272a0fc359e0a66d66fee4ff942e3c | |
parent | 8c8d1dc5695c224a3d0e5ef176b63d592886e69f (diff) | |
download | groff-a6b497222e679a191629137297b0fe37f937cfbb.tar.gz |
* src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removinggroff-20000310-1
initializers from arguments (some compilers don't like this).
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/libs/libgroff/tmpfile.cc | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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 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) |