summaryrefslogtreecommitdiffstats
path: root/net/khttpd/datasending.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
commitb63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch)
tree0a343ce219e2b8b38a5d702d66032c57b83d9720 /net/khttpd/datasending.c
parenta9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff)
Merge with 2.4.0-test11.
Diffstat (limited to 'net/khttpd/datasending.c')
-rw-r--r--net/khttpd/datasending.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/khttpd/datasending.c b/net/khttpd/datasending.c
index a26afe191..5726dca32 100644
--- a/net/khttpd/datasending.c
+++ b/net/khttpd/datasending.c
@@ -58,7 +58,7 @@ It sends the data to the socket indicated by desc->buf.
static int sock_send_actor(read_descriptor_t * desc, struct page *page, unsigned long offset, unsigned long size)
{
int written;
- unsigned long kaddr;
+ char *kaddr;
unsigned long count = desc->count;
struct socket *sock = (struct socket *) desc->buf;
mm_segment_t old_fs;
@@ -69,7 +69,7 @@ static int sock_send_actor(read_descriptor_t * desc, struct page *page, unsigned
set_fs(KERNEL_DS);
kaddr = kmap(page);
- written = SendBuffer_async(sock,(char *)kaddr + offset,size);
+ written = SendBuffer_async(sock, kaddr + offset, size);
kunmap(page);
set_fs(old_fs);
if (written < 0) {
@@ -114,7 +114,7 @@ int DataSending(const int CPUNR)
inode = CurrentRequest->filp->f_dentry->d_inode;
- if (inode && inode->i_mapping->a_ops->readpage) {
+ if (inode->i_mapping->a_ops->readpage) {
/* This does the actual transfer using sendfile */
read_descriptor_t desc;
loff_t *ppos;