From ccbfdc54258e889e99448c5ea3eb5add00b17a78 Mon Sep 17 00:00:00 2001
From: David Hedbor <david@hedbor.org>
Date: Thu, 13 May 1999 00:02:35 -0700
Subject: [PATCH] Typo fix: iov->iov_data changed to iov->iov_base.

Rev: src/modules/files/sendfile.c:1.18
---
 src/modules/files/sendfile.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/files/sendfile.c b/src/modules/files/sendfile.c
index 736907f17c..953da777b7 100644
--- a/src/modules/files/sendfile.c
+++ b/src/modules/files/sendfile.c
@@ -1,5 +1,5 @@
 /*
- * $Id: sendfile.c,v 1.17 1999/05/07 14:58:13 grubba Exp $
+ * $Id: sendfile.c,v 1.18 1999/05/13 07:02:35 neotron Exp $
  *
  * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously.
  *
@@ -144,6 +144,7 @@ struct pike_sendfile
   char *buffer;
 };
 
+#undef THIS
 #define THIS	((struct pike_sendfile *)(fp->current_storage))
 
 /*
@@ -203,7 +204,7 @@ static void exit_pike_sendfile(struct object *o)
 static int writev(int fd, struct iovec *iov, int n)
 {
   if (n) {
-    return fd_write(fd, iov->iov_data, iov->iov_len);
+    return fd_write(fd, iov->iov_base, iov->iov_len);
   }
   return 0;
 }
-- 
GitLab