]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-07-18 Kris Warkentin <kewarken@qnx.com>
authorKris Warkentin <kewarken@qnx.com>
Fri, 18 Jul 2003 17:15:33 +0000 (17:15 +0000)
committerKris Warkentin <kewarken@qnx.com>
Fri, 18 Jul 2003 17:15:33 +0000 (17:15 +0000)
* nto-procfs.c: Clean ARI hits.  Change #include <..> to
#include ....
(procfs_meminfo): Change strerror to safe_strerror.
(procfs_can_run): Remove K&R badness.

gdb/ChangeLog
gdb/nto-procfs.c

index 80ef28f074c2827c53c3d67fcdfad8a33e5ddac9..b9a05869fed534c34beb89d4f020e5d743f1efd2 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-18  Kris Warkentin  <kewarken@qnx.com>
+
+       * nto-procfs.c: Clean ARI hits.  Change #include <..> to
+       #include "...".
+       (procfs_meminfo): Change strerror to safe_strerror.
+       (procfs_can_run): Remove K&R badness.
+
 2003-07-17  Michael Snyder  <msnyder@redhat.com>
 
        * remote-sim.c: Comment typo fix.
index 7fe1cc0c22df6a716b611e188428145b7cc0f26d..00b409661e655ba69ee4605c785cef866634d09b 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/procfs.h>
 #include <sys/neutrino.h>
 #include <sys/syspage.h>
-#include <gdb_dirent.h>
+#include "gdb_dirent.h"
 #include <sys/netmgr.h>
 
 #include "gdb_string.h"
@@ -375,7 +375,7 @@ procfs_meminfo (char *args, int from_tty)
   err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
   if (err != EOK)
     {
-      printf ("failed devctl num mapinfos - %d (%s)\n", err, strerror (err));
+      printf ("failed devctl num mapinfos - %d (%s)\n", err, safe_strerror (err));
       return;
     }
 
@@ -389,7 +389,7 @@ procfs_meminfo (char *args, int from_tty)
                * sizeof (procfs_mapinfo), &num);
   if (err != EOK)
     {
-      printf ("failed devctl mapinfos - %d (%s)\n", err, strerror (err));
+      printf ("failed devctl mapinfos - %d (%s)\n", err, safe_strerror (err));
       xfree (mapinfos);
       return;
     }
@@ -494,7 +494,7 @@ procfs_files_info (struct target_ops *ignore)
 
 /* Mark our target-struct as eligible for stray "run" and "attach" commands.  */
 static int
-procfs_can_run ()
+procfs_can_run (void)
 {
   return 1;
 }