Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack fix lp64 snafu (hopefully)



details:   https://anonhg.NetBSD.org/src/rev/290564f2f6b5
branches:  trunk
changeset: 761026:290564f2f6b5
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 18 23:43:21 2011 +0000

description:
fix lp64 snafu (hopefully)

from pgoyette

diffstat:

 lib/librumphijack/hijack.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 17bc3756bf5c -r 290564f2f6b5 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Tue Jan 18 23:36:06 2011 +0000
+++ b/lib/librumphijack/hijack.c        Tue Jan 18 23:43:21 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.14 2011/01/18 19:41:02 pooka Exp $       */
+/*      $NetBSD: hijack.c,v 1.15 2011/01/18 23:43:21 pooka Exp $       */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.14 2011/01/18 19:41:02 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.15 2011/01/18 23:43:21 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -562,7 +562,7 @@
 ssize_t
 read(int fd, void *buf, size_t len)
 {
-       int (*op_read)(int, void *, size_t);
+       ssize_t (*op_read)(int, void *, size_t);
        ssize_t n;
 
        DPRINTF(("read %d\n", fd));
@@ -580,7 +580,7 @@
 ssize_t
 readv(int fd, const struct iovec *iov, int iovcnt)
 {
-       int (*op_readv)(int, const struct iovec *, int);
+       ssize_t (*op_readv)(int, const struct iovec *, int);
 
        DPRINTF(("readv %d\n", fd));
        if (fd_isrump(fd)) {
@@ -596,7 +596,7 @@
 ssize_t
 write(int fd, const void *buf, size_t len)
 {
-       int (*op_write)(int, const void *, size_t);
+       ssize_t (*op_write)(int, const void *, size_t);
 
        if (fd_isrump(fd)) {
                fd = fd_host2rump(fd);
@@ -611,7 +611,7 @@
 ssize_t
 writev(int fd, const struct iovec *iov, int iovcnt)
 {
-       int (*op_writev)(int, const struct iovec *, int);
+       ssize_t (*op_writev)(int, const struct iovec *, int);
 
        DPRINTF(("writev %d\n", fd));
        if (fd_isrump(fd)) {



Home | Main Index | Thread Index | Old Index