diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-30 11:12:01 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-30 11:12:01 +0000 |
commit | 4c84d7b760ceb1e140c1cfc0fa64289ca4d243ed (patch) | |
tree | 6925b52efd156f13a4493b4822653467de66c412 /testsuites/samples/fileio | |
parent | 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-4c84d7b760ceb1e140c1cfc0fa64289ca4d243ed.tar.bz2 |
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* fileio/init.c, fileio/system.h, ticker/system.h, ticker/tasks.c,
unlimited/init.c, unlimited/test1.c, unlimited/test2.c,
unlimited/test3.c: Convert to using c99 fixed size types.
Diffstat (limited to 'testsuites/samples/fileio')
-rw-r--r-- | testsuites/samples/fileio/init.c | 10 | ||||
-rw-r--r-- | testsuites/samples/fileio/system.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c index 1cb82a011d..5fafd446d6 100644 --- a/testsuites/samples/fileio/init.c +++ b/testsuites/samples/fileio/init.c @@ -163,7 +163,7 @@ void fileio_list_file(void) { char fname[1024]; char *buf_ptr = NULL; - unsigned32 flen = 0; + uint32_t flen = 0; int fd = -1; ssize_t n; size_t buf_size = 100; @@ -225,7 +225,7 @@ void fileio_list_file(void) /* * convert a size string (like 34K or 12M) to actual byte count */ -boolean fileio_str2size(const char *str,unsigned32 *res_ptr) +boolean fileio_str2size(const char *str,uint32_t *res_ptr) { boolean failed = FALSE; unsigned long size; @@ -254,8 +254,8 @@ void fileio_write_file(void) { char fname[1024]; char tmp_str[32]; - unsigned32 file_size = 0; - unsigned32 buf_size = 0; + uint32_t file_size = 0; + uint32_t buf_size = 0; size_t curr_pos,bytes_to_copy; int fd = -1; ssize_t n; @@ -415,7 +415,7 @@ void fileio_read_file(void) { char fname[1024]; char tmp_str[32]; - unsigned32 buf_size = 0; + uint32_t buf_size = 0; size_t curr_pos; int fd = -1; ssize_t n; diff --git a/testsuites/samples/fileio/system.h b/testsuites/samples/fileio/system.h index 9c35b83da3..105e44c200 100644 --- a/testsuites/samples/fileio/system.h +++ b/testsuites/samples/fileio/system.h @@ -93,7 +93,7 @@ int rtems_bdbuf_configuration_size =( sizeof(rtems_bdbuf_configuration) #define put_name( _name, _crlf ) \ do { \ - rtems_unsigned32 c0, c1, c2, c3; \ + uint32_t c0, c1, c2, c3; \ \ c0 = ((_name) >> 24) & 0xff; \ c1 = ((_name) >> 16) & 0xff; \ @@ -111,7 +111,7 @@ int rtems_bdbuf_configuration_size =( sizeof(rtems_bdbuf_configuration) * static inline routine to make obtaining ticks per second easier. */ -static inline rtems_unsigned32 get_ticks_per_second( void ) +static inline uint32_t get_ticks_per_second( void ) { rtems_interval ticks_per_second; (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_second ); return ticks_per_second; |