SCP: Fix compile errors in recent commits

This commit is contained in:
Mark Pizzolato 2021-01-13 05:12:30 -08:00
parent f1b7dc9d21
commit e9d774908e
2 changed files with 3 additions and 2 deletions

4
scp.c
View file

@ -7878,11 +7878,11 @@ if ((dptr = find_dev_from_unit (uptr)) == NULL)
if ((uptr->flags & UNIT_BUF) && (uptr->filebuf)) {
uint32 cap = (uptr->hwmark + dptr->aincr - 1) / dptr->aincr;
if (uptr->hwmark && ((uptr->flags & UNIT_RO) == 0)) {
sim_messagef (SCPE_OK, "%s: writing buffer to file: %s\n", sim_uname (dptr), uptr->filename);
sim_messagef (SCPE_OK, "%s: writing buffer to file: %s\n", sim_uname (uptr), uptr->filename);
rewind (uptr->fileref);
sim_fwrite (uptr->filebuf, SZ_D (dptr), cap, uptr->fileref);
if (ferror (uptr->fileref))
sim_printf ("%s: I/O error - %s", sim_uname (dptr), strerror (errno));
sim_printf ("%s: I/O error - %s", sim_uname (uptr), strerror (errno));
}
if (uptr->flags & UNIT_MUSTBUF) { /* dyn alloc? */
free (uptr->filebuf); /* free buf */

View file

@ -171,6 +171,7 @@ size_t sim_strlcpy (char *dst, const char *src, size_t size);
#ifndef strcasecmp
#define strcasecmp(str1, str2) sim_strcasecmp ((str1), (str2))
#endif
int sim_strwhitecasecmp (const char *string1, const char *string2, t_bool casecmp);
#ifdef __cplusplus