summaryrefslogtreecommitdiffstats
path: root/src/core/hw.c
diff options
context:
space:
mode:
authorMichael Brown2007-05-18 16:16:06 +0200
committerMichael Brown2007-05-18 16:16:06 +0200
commit59e738d756552ff19c59f39ccd094321b21eab01 (patch)
treed29b2560eb6b97fd8684233a9b14cbc811eb26b9 /src/core/hw.c
parentDo not hold self-references. This then avoids the problem of having to (diff)
downloadipxe-59e738d756552ff19c59f39ccd094321b21eab01.tar.gz
ipxe-59e738d756552ff19c59f39ccd094321b21eab01.tar.xz
ipxe-59e738d756552ff19c59f39ccd094321b21eab01.zip
Prefix all the open()-family routines with xfer_, to disambiguate them
from the normal POSIX-style open()
Diffstat (limited to 'src/core/hw.c')
-rw-r--r--src/core/hw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hw.c b/src/core/hw.c
index 460ec583..77b39ba1 100644
--- a/src/core/hw.c
+++ b/src/core/hw.c
@@ -30,14 +30,15 @@ static void hw_xfer_close ( struct xfer_interface *xfer, int rc ) {
hw_finished ( hw, rc );
}
-static void hw_xfer_request ( struct xfer_interface *xfer,
- off_t start __unused, int whence __unused,
- size_t len __unused ) {
+static int hw_xfer_request ( struct xfer_interface *xfer,
+ off_t start __unused, int whence __unused,
+ size_t len __unused ) {
struct hw *hw = container_of ( xfer, struct hw, xfer );
int rc;
rc = xfer_deliver_raw ( xfer, hw_msg, sizeof ( hw_msg ) );
hw_finished ( hw, rc );
+ return 0;
}
static struct xfer_interface_operations hw_xfer_operations = {