Changeset fc658e4 in rtems


Ignore:
Timestamp:
Feb 10, 2011, 11:34:58 PM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
3fc4d14
Parents:
ebebd71
Message:

2011-02-10 Ralf Corsépius <ralf.corsepius@…>

  • libblock/include/rtems/bdpart.h (rtems_bdpart_format): Eliminate unnamed union (Non c99-compliant).
  • libblock/src/bdpart-create.c, libblock/src/bdpart-read.c, libblock/src/bdpart-write.c: Reflect changes above.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rebebd71 rfc658e4  
     12011-02-10      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libblock/include/rtems/bdpart.h (rtems_bdpart_format):
     4        Eliminate unnamed union (Non c99-compliant).
     5        * libblock/src/bdpart-create.c, libblock/src/bdpart-read.c,
     6        libblock/src/bdpart-write.c: Reflect changes above.
     7
    182011-02-09      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • cpukit/libblock/include/rtems/bdpart.h

    rebebd71 rfc658e4  
    198198      uuid_t disk_id;
    199199    } gpt;
    200   };
     200  } u;
    201201} rtems_bdpart_format;
    202202
  • cpukit/libblock/src/bdpart-create.c

    rebebd71 rfc658e4  
    3838  bool dos_compatibility = format != NULL
    3939    && format->type == RTEMS_BDPART_FORMAT_MBR
    40     && format->mbr.dos_compatibility;
     40    && format->u.mbr.dos_compatibility;
    4141  rtems_blkdev_bnum disk_end = 0;
    4242  rtems_blkdev_bnum pos = 0;
  • cpukit/libblock/src/bdpart-read.c

    rebebd71 rfc658e4  
    262262  /* Set format */
    263263  format->type = RTEMS_BDPART_FORMAT_MBR;
    264   format->mbr.disk_id = rtems_uint32_from_little_endian(
     264  format->u.mbr.disk_id = rtems_uint32_from_little_endian(
    265265    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
    266266  );
    267   format->mbr.dos_compatibility = true;
     267  format->u.mbr.dos_compatibility = true;
    268268
    269269  /* Iterate through the rest of the primary partition table */
  • cpukit/libblock/src/bdpart-write.c

    rebebd71 rfc658e4  
    9595  bool dos_compatibility = format != NULL
    9696    && format->type == RTEMS_BDPART_FORMAT_MBR
    97     && format->mbr.dos_compatibility;
     97    && format->u.mbr.dos_compatibility;
    9898  rtems_bdbuf_buffer *block = NULL;
    9999  rtems_blkdev_bnum disk_end = 0;
     
    220220  /* Write disk ID */
    221221  rtems_uint32_to_little_endian(
    222     format->mbr.disk_id,
     222    format->u.mbr.disk_id,
    223223    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
    224224  );
Note: See TracChangeset for help on using the changeset viewer.