aboutsummaryrefslogtreecommitdiff
path: root/sim/sh
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>1995-10-06 19:13:13 +0000
committerJim Wilson <wilson@tuliptree.org>1995-10-06 19:13:13 +0000
commit437fb926e613c9e5995642ce730561342b07d57d (patch)
tree8b3cb4c870a2549b9d6bb700051b5dc1e3011e3b /sim/sh
parente34be374b86a158e6477a2331e66d5d4f7c56ad8 (diff)
downloadgdb-437fb926e613c9e5995642ce730561342b07d57d.zip
gdb-437fb926e613c9e5995642ce730561342b07d57d.tar.gz
gdb-437fb926e613c9e5995642ce730561342b07d57d.tar.bz2
* interp.c (trap, case SYS_utime): Cast second arg of utime to
void * to avoid compiler error.
Diffstat (limited to 'sim/sh')
-rw-r--r--sim/sh/ChangeLog5
-rw-r--r--sim/sh/interp.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog
index 634e644..4cf5e4f 100644
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,3 +1,8 @@
+Fri Oct 6 12:08:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
+
+ * interp.c (trap, case SYS_utime): Cast second arg of utime to
+ void * to avoid compiler error.
+
Thu Oct 5 14:13:29 1995 steve chamberlain <sac@slash.cygnus.com>
* interp.c (callback): Initialize to default callback.
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index e8a10dc..da5dcca 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -584,7 +584,9 @@ trap (i, regs, memory, maskl, maskw, little_endian)
regs[0] = chmod (ptr (regs[5]), regs[6]);
break;
case SYS_utime:
- regs[0] = utime (ptr (regs[5]), ptr (regs[6]));
+ /* Cast the second argument to void *, to avoid type mismatch
+ if a prototype is present. */
+ regs[0] = utime (ptr (regs[5]), (void *) ptr (regs[6]));
break;
default:
abort ();