From: Kris Warkentin Date: Fri, 18 Jul 2003 17:15:33 +0000 (+0000) Subject: 2003-07-18 Kris Warkentin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5483d879bd40494c8342b72794196768e17aebe7;p=binutils-gdb.git 2003-07-18 Kris Warkentin * nto-procfs.c: Clean ARI hits. Change #include <..> to #include .... (procfs_meminfo): Change strerror to safe_strerror. (procfs_can_run): Remove K&R badness. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80ef28f074c..b9a05869fed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-07-18 Kris Warkentin + + * 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 * remote-sim.c: Comment typo fix. 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 #include #include -#include +#include "gdb_dirent.h" #include #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; }