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, |
630 | 630 | return 1; |
631 | 631 | } |
632 | 632 | |
633 | | static int cpio_read(void *fh, char *buffer, int count) |
| 633 | static ssize_t cpio_read(void *fh, char *buffer, int count) |
634 | 634 | { |
635 | 635 | off_t begin = FH->ino->data_offset; |
636 | 636 | int fd = FH_SUPER->u.arch.fd; |
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, |
377 | 377 | |
378 | 378 | |
379 | 379 | #define MC_HANDLEOP(name, inarg, callarg) \ |
380 | | int mc_##name inarg \ |
| 380 | ssize_t mc_##name inarg \ |
381 | 381 | { \ |
382 | 382 | struct vfs_class *vfs; \ |
383 | 383 | int result; \ |
… |
… |
int mc_##name inarg \ |
390 | 390 | return result; \ |
391 | 391 | } |
392 | 392 | |
393 | | MC_HANDLEOP(read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count) ) |
| 393 | MC_HANDLEOP (read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count)) |
394 | 394 | MC_HANDLEOP (write, (int handle, const void *buf, int nbyte), (vfs_info (handle), buf, nbyte)) |
395 | 395 | |
396 | 396 | |