summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_load_tar.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-05-03 22:17:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-05-03 22:17:27 +0000
commiteb12bf41fb2bac1ab6e706be00626d2dcedf4ecc (patch)
tree2cb176ddba55a847d3beb7d9c9b5b705ee26975e /cpukit/libfs/src/imfs/imfs_load_tar.c
parent2005-05-03 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-eb12bf41fb2bac1ab6e706be00626d2dcedf4ecc.tar.bz2
2005-05-03 Joel Sherrill <joel@OARcorp.com>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Use uint8_t instead of char for raw data buffer.
Diffstat (limited to '')
-rw-r--r--cpukit/libfs/src/imfs/imfs_load_tar.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_load_tar.c b/cpukit/libfs/src/imfs/imfs_load_tar.c
index b206547fb7..e229f3be67 100644
--- a/cpukit/libfs/src/imfs/imfs_load_tar.c
+++ b/cpukit/libfs/src/imfs/imfs_load_tar.c
@@ -73,9 +73,11 @@
* create_node.
*************************************************************************/
int
-rtems_tarfs_load(char *mountpoint,
- char *tar_image,
- size_t tar_size)
+rtems_tarfs_load(
+ char *mountpoint,
+ uint8_t *tar_image,
+ size_t tar_size
+)
{
rtems_filesystem_location_info_t root_loc;
rtems_filesystem_location_info_t loc;
@@ -91,7 +93,6 @@ rtems_tarfs_load(char *mountpoint,
IMFS_jnode_t *node;
int status;
-
status = rtems_filesystem_evaluate_path(mountpoint, 0, &root_loc, 0);
if (status != 0)
return(-1);
@@ -111,7 +112,7 @@ rtems_tarfs_load(char *mountpoint,
/******************************************************************
* Read a header.
******************************************************************/
- hdr_ptr = &tar_image[offset];
+ hdr_ptr = (char *) &tar_image[offset];
offset += 512;
if (strncmp(&hdr_ptr[257], "ustar ", 7))
break;