Changeset 7258c6a in buchla-68k for ram/ptwrite.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/ptwrite.c
r0292fbb r7258c6a 31 31 #endif 32 32 33 extern long chksum(char *area, longlen);34 35 /* 36 37 */ 38 39 charptsizes[] = {33 extern int32_t chksum(int8_t *area, int32_t len); 34 35 /* 36 37 */ 38 39 int8_t ptsizes[] = { 40 40 41 41 0, /* NULL - end of list */ … … 78 78 */ 79 79 80 longptsizer(void)80 int32_t ptsizer(void) 81 81 { 82 register short pp;83 register longnb;82 register int16_t pp; 83 register int32_t nb; 84 84 85 85 nb = 0L; … … 115 115 */ 116 116 117 short ptwrite(FILE *fp)117 int16_t ptwrite(FILE *fp) 118 118 { 119 register short pp;120 charcb, zero;119 register int16_t pp; 120 int8_t cb, zero; 121 121 122 122 #if DEBUGPW … … 127 127 zero = '\0'; 128 128 129 ldwmsg("Busy -- Please stand by", ( char*)0L, " writing patches",129 ldwmsg("Busy -- Please stand by", (int8_t *)0L, " writing patches", 130 130 LCFBX10, LCBBX10); 131 131 … … 158 158 return(FAILURE); 159 159 160 if (wr_ec(fp, ( char*)&patches[pp].padat2 + 1, 1L))160 if (wr_ec(fp, (int8_t *)&patches[pp].padat2 + 1, 1L)) 161 161 return(FAILURE); 162 162 … … 174 174 return(FAILURE); 175 175 176 if (wr_ec(fp, ( char*)&patches[pp].pasuba + 1, 1L))177 return(FAILURE); 178 179 if (wr_ec(fp, ( char*)&patches[pp].padat2 + 1, 1L))176 if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L)) 177 return(FAILURE); 178 179 if (wr_ec(fp, (int8_t *)&patches[pp].padat2 + 1, 1L)) 180 180 return(FAILURE); 181 181 … … 190 190 return(FAILURE); 191 191 192 if (wr_ec(fp, ( char*)&patches[pp].pasuba + 1, 1L))192 if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L)) 193 193 return(FAILURE); 194 194 … … 206 206 return(FAILURE); 207 207 208 if (wr_ec(fp, ( char*)&patches[pp].pasuba + 1, 1L))208 if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L)) 209 209 return(FAILURE); 210 210 … … 222 222 return(FAILURE); 223 223 224 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))224 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 225 225 return(FAILURE); 226 226 … … 238 238 return(FAILURE); 239 239 240 if (wr_ec(fp, ( char*)&patches[pp].pasuba + 1, 1L))241 return(FAILURE); 242 243 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))244 return(FAILURE); 245 246 if (wr_ec(fp, ( char*)&patches[pp].padat2 + 1, 1L))240 if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L)) 241 return(FAILURE); 242 243 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 244 return(FAILURE); 245 246 if (wr_ec(fp, (int8_t *)&patches[pp].padat2 + 1, 1L)) 247 247 return(FAILURE); 248 248 … … 263 263 return(FAILURE); 264 264 265 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))265 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 266 266 return(FAILURE); 267 267 … … 281 281 return(FAILURE); 282 282 283 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))283 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 284 284 return(FAILURE); 285 285 … … 306 306 return(FAILURE); 307 307 308 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))308 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 309 309 return(FAILURE); 310 310 … … 325 325 return(FAILURE); 326 326 327 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))327 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 328 328 return(FAILURE); 329 329 … … 341 341 return(FAILURE); 342 342 343 if (wr_ec(fp, ( char*)&patches[pp].pasuba + 1, 1L))344 return(FAILURE); 345 346 if (wr_ec(fp, ( char*)&patches[pp].padat1 + 1, 1L))343 if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L)) 344 return(FAILURE); 345 346 if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L)) 347 347 return(FAILURE); 348 348
Note:
See TracChangeset
for help on using the changeset viewer.