1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

Compiler nits for void * assignments from Bob Supnik

This commit is contained in:
Mark Pizzolato
2013-09-04 19:50:47 -07:00
parent 4cc4d12e19
commit 4e5f910fed
13 changed files with 40 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
/* h316_fhd.c: H316/516 fixed head simulator
Copyright (c) 2003-2012, Robert M. Supnik
Copyright (c) 2003-2013, Robert M. Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -25,6 +25,7 @@
fhd 516-4400 fixed head disk
03-Sep-13 RMS Added explicit void * cast
19-Mar-12 RMS Fixed declaration of chan_req (Mark Pizzolato)
15-May-06 RMS Fixed bug in autosize attach (David Gesswein)
04-Jan-04 RMS Changed sim_fsize calling sequence
@@ -373,7 +374,7 @@ uint32 tk = CW1_GETTK (fhd_cw1); /* track */
uint32 ca = CW2_GETCA (fhd_cw2); /* char addr */
uint32 wa = ca >> 1; /* word addr */
uint32 ba = (((sf * FH_NUMTK) + tk) * FH_NUMWD) + wa; /* buffer offset */
uint16 *fbuf = uptr->filebuf; /* buffer base */
uint16 *fbuf = (uint16 *) uptr->filebuf; /* buffer base */
uint32 wd;
if (fhd_bad_wa (wa)) /* addr bad? */