mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 15:00:16 +00:00
Use uint16_t instead of "unsigned short" to circumvent warning on
16bit targets.
This commit is contained in:
@@ -403,8 +403,8 @@ msdos_name_type_t msdos_long_to_short(const char *lfn, int lfn_len,
|
||||
int msdos_filename_unix2dos(const char *un, int unlen, char *dn);
|
||||
|
||||
void msdos_date_unix2dos(
|
||||
unsigned int tsp, unsigned short *ddp,
|
||||
unsigned short *dtp);
|
||||
unsigned int tsp, uint16_t *ddp,
|
||||
uint16_t *dtp);
|
||||
|
||||
unsigned int msdos_date_dos2unix(unsigned int dd, unsigned int dt);
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ static uint16_t lastdtime;
|
||||
* file timestamps. The passed in unix time is assumed to be in GMT.
|
||||
*/
|
||||
void
|
||||
msdos_date_unix2dos(unsigned int t, unsigned short *ddp,
|
||||
unsigned short *dtp)
|
||||
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,
|
||||
uint16_t *dtp)
|
||||
{
|
||||
uint32_t days;
|
||||
uint32_t inc;
|
||||
|
||||
@@ -672,8 +672,8 @@ msdos_set_dir_wrt_time_and_date(
|
||||
{
|
||||
ssize_t ret1 = 0, ret2 = 0;
|
||||
msdos_fs_info_t *fs_info = mt_entry->fs_info;
|
||||
unsigned short time_val;
|
||||
unsigned short date;
|
||||
uint16_t time_val;
|
||||
uint16_t date;
|
||||
uint32_t sec = 0;
|
||||
uint32_t byte = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user