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.
This commit is contained in:
Joel Sherrill
2005-05-03 22:17:27 +00:00
parent 820901ba60
commit eb12bf41fb
3 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
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.
2005-05-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/kern/kern_mib.c, libnetworking/sys/libkern.h:

View File

@@ -84,7 +84,7 @@ typedef struct {
#define IMFS_MEMFILE_BLOCK_SLOTS \
(IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
typedef char * block_p;
typedef uint8_t *block_p;
typedef block_p *block_ptr;
typedef struct {
@@ -266,7 +266,7 @@ int IMFS_fsunmount(
int rtems_tarfs_load(
char *mountpoint,
char *tar_image,
uint8_t *tar_image,
size_t tar_size
);

View File

@@ -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;