Changeset 5ac15a5 in rtems


Ignore:
Timestamp:
Nov 2, 2009, 11:08:31 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
817594b
Parents:
6c9b390
Message:

Use uint16_t instead of "unsigned short" to circumvent warning on
16bit targets.

Location:
cpukit/libfs/src/dosfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/msdos.h

    r6c9b390 r5ac15a5  
    404404
    405405void msdos_date_unix2dos(
    406   unsigned int tsp, unsigned short *ddp,
    407   unsigned short *dtp);
     406  unsigned int tsp, uint16_t *ddp,
     407  uint16_t *dtp);
    408408
    409409unsigned int msdos_date_dos2unix(unsigned int dd, unsigned int dt);
  • cpukit/libfs/src/dosfs/msdos_conv.c

    r6c9b390 r5ac15a5  
    5959 */
    6060void
    61 msdos_date_unix2dos(unsigned int t, unsigned short *ddp,
    62                     unsigned short *dtp)
     61msdos_date_unix2dos(unsigned int t, uint16_t *ddp,
     62                    uint16_t *dtp)
    6363{
    6464        uint32_t days;
  • cpukit/libfs/src/dosfs/msdos_misc.c

    r6c9b390 r5ac15a5  
    673673    ssize_t          ret1 = 0, ret2 = 0;
    674674    msdos_fs_info_t *fs_info = mt_entry->fs_info;
    675     unsigned short   time_val;
    676     unsigned short   date;
     675    uint16_t         time_val;
     676    uint16_t         date;
    677677    uint32_t         sec = 0;
    678678    uint32_t         byte = 0;
Note: See TracChangeset for help on using the changeset viewer.