OSDN Git Service

2004-01-02 Andrew Cagney <cagney@redhat.com>
authorcagney <cagney>
Fri, 2 Jan 2004 17:35:00 +0000 (17:35 +0000)
committercagney <cagney>
Fri, 2 Jan 2004 17:35:00 +0000 (17:35 +0000)
* utils.c (do_my_cleanups): Make static, add forward declaration.
* defs.h (do_my_cleanups): Delete declaration.

gdb/ChangeLog
gdb/defs.h
gdb/testsuite/gdb.base/fileio.c
gdb/utils.c

index 2a7f145..e144796 100644 (file)
@@ -1,3 +1,8 @@
+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
index 9db0af2..443ad6b 100644 (file)
@@ -355,7 +355,6 @@ extern void request_quit (int);
 
 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 *);
index 591b3b6..9c40eb4 100644 (file)
@@ -103,7 +103,7 @@ test_open ()
     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);
index 5868465..ba936d5 100644 (file)
@@ -96,6 +96,8 @@ static void vfprintf_maybe_filtered (struct ui_file *, const char *,
 
 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
@@ -311,7 +313,7 @@ do_exec_error_cleanups (struct cleanup *old_chain)
   do_my_cleanups (&exec_error_cleanup_chain, old_chain);
 }
 
-void
+static void
 do_my_cleanups (struct cleanup **pmy_chain,
                struct cleanup *old_chain)
 {