* utils.c (do_my_cleanups): Make static, add forward declaration.
* defs.h (do_my_cleanups): Delete declaration.
+2004-01-02 Andrew Cagney <cagney@redhat.com>
+
+ * utils.c (do_my_cleanups): Make static, add forward declaration.
+ * defs.h (do_my_cleanups): Delete declaration.
+
2004-01-02 Eli Zaretskii <eliz@elta.co.il>
* config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
extern void do_cleanups (struct cleanup *);
extern void do_final_cleanups (struct cleanup *);
-extern void do_my_cleanups (struct cleanup **, struct cleanup *);
extern void do_run_cleanups (struct cleanup *);
extern void do_exec_cleanups (struct cleanup *);
extern void do_exec_error_cleanups (struct cleanup *);
close (ret);
/* Open for write but no write permission */
errno = 0;
- ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR);
+ ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR);
if (ret >= 0)
{
close (ret);
static void fputs_maybe_filtered (const char *, struct ui_file *, int);
+static void do_my_cleanups (struct cleanup **, struct cleanup *);
+
#if defined (USE_MMALLOC) && !defined (NO_MMCHECK)
static void malloc_botch (void);
#endif
do_my_cleanups (&exec_error_cleanup_chain, old_chain);
}
-void
+static void
do_my_cleanups (struct cleanup **pmy_chain,
struct cleanup *old_chain)
{