1
1

Merge commit 'origin/205_inttypes_64bit_error'

Этот коммит содержится в:
Enrico Weigelt, metux IT service 2009-01-24 19:19:49 +01:00
родитель 5fbcb773a4 d362e3b015
Коммит 2e0edf8672
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -94,10 +94,10 @@ struct defer_inode {
static int cpio_position;
static int cpio_find_head(struct vfs_class *me, struct vfs_s_super *super);
static int cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super);
static int cpio_read_oldc_head(struct vfs_class *me, struct vfs_s_super *super);
static int cpio_read_crc_head(struct vfs_class *me, struct vfs_s_super *super);
static int cpio_create_entry(struct vfs_class *me, struct vfs_s_super *super, struct stat *, char *name);
static ssize_t cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super);
static ssize_t cpio_read_oldc_head(struct vfs_class *me, struct vfs_s_super *super);
static ssize_t cpio_read_crc_head(struct vfs_class *me, struct vfs_s_super *super);
static ssize_t cpio_read(void *fh, char *buffer, int count);
#define CPIO_POS(super) cpio_position
@ -198,7 +198,7 @@ cpio_open_cpio_file (struct vfs_class *me, struct vfs_s_super *super,
return fd;
}
static int cpio_read_head(struct vfs_class *me, struct vfs_s_super *super)
static ssize_t cpio_read_head(struct vfs_class *me, struct vfs_s_super *super)
{
switch(cpio_find_head(me, super)) {
case CPIO_UNKNOWN:
@ -263,7 +263,7 @@ static int cpio_find_head(struct vfs_class *me, struct vfs_s_super *super)
#undef SEEKBACK
#define HEAD_LENGTH (26)
static int cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super)
static ssize_t cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super)
{
union {
struct old_cpio_header buf;
@ -317,7 +317,7 @@ static int cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super)
#undef HEAD_LENGTH
#define HEAD_LENGTH (76)
static int cpio_read_oldc_head(struct vfs_class *me, struct vfs_s_super *super)
static ssize_t cpio_read_oldc_head(struct vfs_class *me, struct vfs_s_super *super)
{
struct new_cpio_header hd;
union {
@ -376,7 +376,7 @@ static int cpio_read_oldc_head(struct vfs_class *me, struct vfs_s_super *super)
#undef HEAD_LENGTH
#define HEAD_LENGTH (110)
static int cpio_read_crc_head(struct vfs_class *me, struct vfs_s_super *super)
static ssize_t cpio_read_crc_head(struct vfs_class *me, struct vfs_s_super *super)
{
struct new_cpio_header hd;
union {
@ -630,7 +630,7 @@ cpio_super_same (struct vfs_class *me, struct vfs_s_super *parc,
return 1;
}
static int cpio_read(void *fh, char *buffer, int count)
static ssize_t cpio_read(void *fh, char *buffer, int count)
{
off_t begin = FH->ino->data_offset;
int fd = FH_SUPER->u.arch.fd;

Просмотреть файл

@ -377,7 +377,7 @@ MC_NAMEOP (mknod, (const char *path, mode_t mode, dev_t dev), (vfs, mpath, mode,
#define MC_HANDLEOP(name, inarg, callarg) \
int mc_##name inarg \
ssize_t mc_##name inarg \
{ \
struct vfs_class *vfs; \
int result; \
@ -390,8 +390,8 @@ int mc_##name inarg \
return result; \
}
MC_HANDLEOP(read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count) )
MC_HANDLEOP (write, (int handle, const void *buf, int nbyte), (vfs_info (handle), buf, nbyte))
MC_HANDLEOP(read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count))
MC_HANDLEOP(write, (int handle, const void *buf, int nbyte), (vfs_info (handle), buf, nbyte))
#define MC_RENAMEOP(name) \