Changeset 199ccde in rtems for cpukit/libblock


Ignore:
Timestamp:
05/08/09 04:55:53 (15 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 5, master
Children:
1cf6593e
Parents:
61541f4
Message:

2009-05-08 Chris Johns <chrisj@…>

  • cpukit/libblock/src/bdpart.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_rm.c, libnetworking/libc/gethostnamadr.c, score/include/rtems/score/bitfield.h, score/inline/rtems/score/priority.inl: Remove warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdpart.c

    r61541f4 r199ccde  
    853853
    854854    /* Set partition number for logical disk name */
    855     rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1);
     855    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1);
    856856    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
    857857      esc = RTEMS_INVALID_NAME;
     
    945945)
    946946{
    947   rtems_status_code sc = RTEMS_SUCCESSFUL;
    948947  rtems_status_code esc = RTEMS_SUCCESSFUL;
    949948  const char *disk_file_name = strrchr( disk_name, '/');
     
    990989  for (i = 0; i < count; ++i) {
    991990    /* Create logical disk name */
    992     int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1);
     991    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1);
    993992    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
    994993      esc = RTEMS_INVALID_NAME;
     
    10321031)
    10331032{
    1034   rtems_status_code sc = RTEMS_SUCCESSFUL;
    10351033  rtems_status_code esc = RTEMS_SUCCESSFUL;
    10361034  const char *disk_file_name = strrchr( disk_name, '/');
     
    10671065  for (i = 0; i < count; ++i) {
    10681066    /* Create mount point */
    1069     int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1);
     1067    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1);
    10701068    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
    10711069      esc = RTEMS_INVALID_NAME;
Note: See TracChangeset for help on using the changeset viewer.