+Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * syscall.c (cb_syscall, cases stat, fstat): Handle -Wall -Werror.
+
Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
* sim-io.c (sim_io_syscalls): Disable lseek.
result = -1;
goto FinishSyscall;
}
- if ((*sc->write_mem) (cb, sc, addr, buf, buflen) != buflen)
+ /* ??? Coercion to unsigned avoids -Wall -Werror failure.
+ Ya, cb_host_to_target_stat could return an unsigned int,
+ but that seems worse. */
+ if ((*sc->write_mem) (cb, sc, addr, buf, buflen) != (unsigned) buflen)
{
free (buf);
errcode = EINVAL;
result = -1;
goto FinishSyscall;
}
- if ((*sc->write_mem) (cb, sc, addr, buf, buflen) != buflen)
+ /* ??? Coercion to unsigned avoids -Wall -Werror failure.
+ Ya, cb_host_to_target_stat could return an unsigned int,
+ but that seems worse. */
+ if ((*sc->write_mem) (cb, sc, addr, buf, buflen) != (unsigned) buflen)
{
free (buf);
errcode = EINVAL;