Changeset eb12bf4 in rtems


Ignore:
Timestamp:
May 3, 2005, 10:17:27 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6ab8797
Parents:
820901ba
Message:

2005-05-03 Joel Sherrill <joel@…>

  • libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Use uint8_t instead of char for raw data buffer.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r820901ba reb12bf4  
     12005-05-03      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Use uint8_t
     4        instead of char for raw data buffer.
     5
    162005-05-01      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • cpukit/libfs/src/imfs/imfs.h

    r820901ba reb12bf4  
    8585  (IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
    8686
    87 typedef char * block_p;
     87typedef uint8_t *block_p;
    8888typedef block_p *block_ptr;
    8989
     
    267267int rtems_tarfs_load(
    268268   char         *mountpoint,
    269    char         *tar_image,
     269   uint8_t      *tar_image,
    270270   size_t        tar_size
    271271);
  • cpukit/libfs/src/imfs/imfs_load_tar.c

    r820901ba reb12bf4  
    7474 *************************************************************************/
    7575int
    76 rtems_tarfs_load(char *mountpoint,
    77                  char *tar_image,
    78                  size_t tar_size)
     76rtems_tarfs_load(
     77  char *mountpoint,
     78  uint8_t *tar_image,
     79  size_t tar_size
     80)
    7981{
    8082   rtems_filesystem_location_info_t root_loc;
     
    9193   IMFS_jnode_t    *node;
    9294   int             status;
    93 
    9495
    9596   status = rtems_filesystem_evaluate_path(mountpoint, 0, &root_loc, 0);
     
    112113       * Read a header.
    113114       ******************************************************************/
    114       hdr_ptr = &tar_image[offset];
     115      hdr_ptr = (char *) &tar_image[offset];
    115116      offset += 512;
    116117      if (strncmp(&hdr_ptr[257], "ustar  ", 7))
Note: See TracChangeset for help on using the changeset viewer.