summaryrefslogtreecommitdiff
path: root/gdb/nto-procfs.c
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
commit4a2056d6987e14a37c554511a5ee170d53dc8192 (patch)
tree7ec4a566fd659f4f66882f9e8a57fae8f7f602da /gdb/nto-procfs.c
parentd59a8d22b17aad36114806f0b4ad4c543b79f823 (diff)
downloadgdb-4a2056d6987e14a37c554511a5ee170d53dc8192.tar.gz
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.
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r--gdb/nto-procfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index 7fe1cc0c22d..00b409661e6 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;
}