Ticket #205: 205_amd64_compilation_errors.001.patch

File 205_amd64_compilation_errors.001.patch, 1.5 KB (added by styx, 16 years ago)
  • vfs/cpio.c

    From d3804562d9c47a7bc36a4eebb8bbf9757e9a5eeb Mon Sep 17 00:00:00 2001
    From: Mikhail S. Pobolovets <styx.mp@gmail.com>
    Date: Thu, 22 Jan 2009 23:29:54 +0200
    Subject: [PATCH] Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
    
    ssize_t and int incompatibility fix
    ---
     vfs/cpio.c |    2 +-
     vfs/vfs.c  |    4 ++--
     2 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/vfs/cpio.c b/vfs/cpio.c
    index 167d742..11bf2a3 100644
    a b cpio_super_same (struct vfs_class *me, struct vfs_s_super *parc, 
    630630    return 1; 
    631631} 
    632632 
    633 static int cpio_read(void *fh, char *buffer, int count) 
     633static ssize_t cpio_read(void *fh, char *buffer, int count) 
    634634{ 
    635635    off_t begin = FH->ino->data_offset; 
    636636    int fd = FH_SUPER->u.arch.fd; 
  • vfs/vfs.c

    diff --git a/vfs/vfs.c b/vfs/vfs.c
    index 21b5404..e6901ec 100644
    a b MC_NAMEOP (mknod, (const char *path, mode_t mode, dev_t dev), (vfs, mpath, mode, 
    377377 
    378378 
    379379#define MC_HANDLEOP(name, inarg, callarg) \ 
    380 int mc_##name inarg \ 
     380ssize_t mc_##name inarg \ 
    381381{ \ 
    382382    struct vfs_class *vfs; \ 
    383383    int result; \ 
    int mc_##name inarg \ 
    390390    return result; \ 
    391391} 
    392392 
    393 MC_HANDLEOP(read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count) ) 
     393MC_HANDLEOP (read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count)) 
    394394MC_HANDLEOP (write, (int handle, const void *buf, int nbyte), (vfs_info (handle), buf, nbyte)) 
    395395 
    396396