aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-07-18 17:15:33 +0000
committerKris Warkentin <kewarken@qnx.com>2003-07-18 17:15:33 +0000
commit5483d879bd40494c8342b72794196768e17aebe7 (patch)
tree230e200844751c55999259e700e03ab3c95246d1
parent31e0f3cd45f5e24eb497bcbb1eec8e22b387ed9c (diff)
downloadgdb-5483d879bd40494c8342b72794196768e17aebe7.zip
gdb-5483d879bd40494c8342b72794196768e17aebe7.tar.gz
gdb-5483d879bd40494c8342b72794196768e17aebe7.tar.bz2
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.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/nto-procfs.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 80ef28f..b9a0586 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index 7fe1cc0..00b4096 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -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;
}