SCP: Fix compile errors in recent commits
This commit is contained in:
parent
f1b7dc9d21
commit
e9d774908e
2 changed files with 3 additions and 2 deletions
4
scp.c
4
scp.c
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue