Changeset 7258c6a in buchla-68k for libcio/dirfns.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
  • libcio/dirfns.c

    r0292fbb r7258c6a  
    99#include "biosdefs.h"
    1010
    11 extern  long    sprintf(char *str, char *fmt, ...);
     11extern  int32_t sprintf(int8_t *str, int8_t *fmt, ...);
    1212
    13 static char atrcons[] = "ADVSHR";
     13static int8_t atrcons[] = "ADVSHR";
    1414
    1515/*
     
    1919*/
    2020
    21 char *atrstr(short atr, char s[])
     21int8_t *atrstr(int16_t atr, int8_t s[])
    2222{
    23         register short  i, j;
     23        register int16_t        i, j;
    2424
    2525        i = 0x20;
     
    4242 */
    4343
    44 static char *mnames[] = {
     44static int8_t *mnames[] = {
    4545
    4646        "???",
     
    6565*/
    6666
    67 char *mname(short n)
     67int8_t *mname(int16_t n)
    6868{
    6969        return((n < 1 || n > 12) ? mnames[0] : mnames[n]);
     
    8181*/
    8282
    83 char *dtunpk(short din, short tin, short fmt, char *s)
     83int8_t *dtunpk(int16_t din, int16_t tin, int16_t fmt, int8_t *s)
    8484{
    85         register short  ftm, fdt;
     85        register int16_t        ftm, fdt;
    8686
    8787        ftm = ((tin << 8) & 0xFF00) | ((tin >> 8) & 0x00FF);
Note: See TracChangeset for help on using the changeset viewer.