Changeset 7258c6a in buchla-68k for ram/ptwrite.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/ptwrite.c

    r0292fbb r7258c6a  
    3131#endif
    3232
    33 extern  long    chksum(char *area, long len);
    34 
    35 /*
    36 
    37 */
    38 
    39 char    ptsizes[] = {
     33extern  int32_t chksum(int8_t *area, int32_t len);
     34
     35/*
     36
     37*/
     38
     39int8_t  ptsizes[] = {
    4040
    4141        0,      /* NULL - end of list */
     
    7878*/
    7979
    80 long ptsizer(void)
     80int32_t ptsizer(void)
    8181{
    82         register short pp;
    83         register long nb;
     82        register int16_t pp;
     83        register int32_t nb;
    8484
    8585        nb = 0L;
     
    115115*/
    116116
    117 short ptwrite(FILE *fp)
     117int16_t ptwrite(FILE *fp)
    118118{
    119         register short pp;
    120         char cb, zero;
     119        register int16_t pp;
     120        int8_t cb, zero;
    121121
    122122#if     DEBUGPW
     
    127127        zero = '\0';
    128128
    129         ldwmsg("Busy -- Please stand by", (char *)0L, "  writing patches",
     129        ldwmsg("Busy -- Please stand by", (int8_t *)0L, "  writing patches",
    130130                LCFBX10, LCBBX10);
    131131
     
    158158                                        return(FAILURE);
    159159
    160                                 if (wr_ec(fp, (char *)&patches[pp].padat2 + 1, 1L))
     160                                if (wr_ec(fp, (int8_t *)&patches[pp].padat2 + 1, 1L))
    161161                                        return(FAILURE);
    162162
     
    174174                                        return(FAILURE);
    175175
    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))
    180180                                        return(FAILURE);
    181181
     
    190190                                        return(FAILURE);
    191191
    192                                 if (wr_ec(fp, (char *)&patches[pp].pasuba + 1, 1L))
     192                                if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L))
    193193                                        return(FAILURE);
    194194
     
    206206                                        return(FAILURE);
    207207
    208                                 if (wr_ec(fp, (char *)&patches[pp].pasuba + 1, 1L))
     208                                if (wr_ec(fp, (int8_t *)&patches[pp].pasuba + 1, 1L))
    209209                                        return(FAILURE);
    210210
     
    222222                                        return(FAILURE);
    223223
    224                                 if (wr_ec(fp, (char *)&patches[pp].padat1 + 1, 1L))
     224                                if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L))
    225225                                        return(FAILURE);
    226226
     
    238238                                        return(FAILURE);
    239239
    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))
    247247                                        return(FAILURE);
    248248
     
    263263                                        return(FAILURE);
    264264
    265                                 if (wr_ec(fp, (char *)&patches[pp].padat1 + 1, 1L))
     265                                if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L))
    266266                                        return(FAILURE);
    267267
     
    281281                                        return(FAILURE);
    282282
    283                                 if (wr_ec(fp, (char *)&patches[pp].padat1 + 1, 1L))
     283                                if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L))
    284284                                        return(FAILURE);
    285285
     
    306306                                        return(FAILURE);
    307307
    308                                 if (wr_ec(fp, (char *)&patches[pp].padat1 + 1, 1L))
     308                                if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L))
    309309                                        return(FAILURE);
    310310
     
    325325                                        return(FAILURE);
    326326
    327                                 if (wr_ec(fp, (char *)&patches[pp].padat1 + 1, 1L))
     327                                if (wr_ec(fp, (int8_t *)&patches[pp].padat1 + 1, 1L))
    328328                                        return(FAILURE);
    329329
     
    341341                                        return(FAILURE);
    342342
    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))
    347347                                        return(FAILURE);
    348348
Note: See TracChangeset for help on using the changeset viewer.