diff options
author | Chris Johns <chrisj@rtems.org> | 2009-05-08 04:55:53 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-05-08 04:55:53 +0000 |
commit | 199ccded5dbc4dabb7e4fd5a2772eed6e571d444 (patch) | |
tree | 12c832f55d56161ad0ed3ae4e8fab785596883db /cpukit/libblock | |
parent | 2009-05-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-199ccded5dbc4dabb7e4fd5a2772eed6e571d444.tar.bz2 |
2009-05-08 Chris Johns <chrisj@rtems.org>
* 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.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r-- | cpukit/libblock/src/bdpart.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/libblock/src/bdpart.c b/cpukit/libblock/src/bdpart.c index 29b770121e..b86780ccf4 100644 --- a/cpukit/libblock/src/bdpart.c +++ b/cpukit/libblock/src/bdpart.c @@ -852,7 +852,7 @@ rtems_status_code rtems_bdpart_register( logical_disk = rtems_filesystem_make_dev_t( major, minor); /* Set partition number for logical disk name */ - rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1); + rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); if (rv >= RTEMS_BDPART_NUMBER_SIZE) { esc = RTEMS_INVALID_NAME; goto cleanup; @@ -944,7 +944,6 @@ rtems_status_code rtems_bdpart_mount( const char *mount_base ) { - rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_status_code esc = RTEMS_SUCCESSFUL; const char *disk_file_name = strrchr( disk_name, '/'); char *logical_disk_name = NULL; @@ -989,7 +988,7 @@ rtems_status_code rtems_bdpart_mount( /* Mount supported file systems for each partition */ for (i = 0; i < count; ++i) { /* Create logical disk name */ - int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1); + int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); if (rv >= RTEMS_BDPART_NUMBER_SIZE) { esc = RTEMS_INVALID_NAME; goto cleanup; @@ -1031,7 +1030,6 @@ rtems_status_code rtems_bdpart_unmount( const char *mount_base ) { - rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_status_code esc = RTEMS_SUCCESSFUL; const char *disk_file_name = strrchr( disk_name, '/'); char *mount_point = NULL; @@ -1066,7 +1064,7 @@ rtems_status_code rtems_bdpart_unmount( /* Mount supported file systems for each partition */ for (i = 0; i < count; ++i) { /* Create mount point */ - int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%u", i + 1); + int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); if (rv >= RTEMS_BDPART_NUMBER_SIZE) { esc = RTEMS_INVALID_NAME; goto cleanup; |