diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-05-01 18:40:45 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-05-01 18:40:45 -0700 |
commit | efd2d8b54c4fa38ae9a036d5bce72baca4c9cce1 (patch) | |
tree | ec001cab158ff2cf3e2ea5a774a5ef3d4402bf47 /core/fs/pxe/http.c | |
parent | 275abcfb66c764bbc7b0d07ec9b63e6fda63ec3a (diff) | |
download | syslinux-efd2d8b54c4fa38ae9a036d5bce72baca4c9cce1.tar.gz |
pxe: move the per-connection-type operations into a structure
Move the per-connection-type operations into a structure, to make it
easier to modify them in the future.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/fs/pxe/http.c')
-rw-r--r-- | core/fs/pxe/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/pxe/http.c b/core/fs/pxe/http.c index 6f159f6f..3f2bb15a 100644 --- a/core/fs/pxe/http.c +++ b/core/fs/pxe/http.c @@ -178,8 +178,8 @@ void http_open(struct url_info *url, int flags, struct inode *inode, if (!header_buf) return; /* http is broken... */ - socket->fill_buffer = tcp_fill_buffer; - socket->close = tcp_close_file; + /* This is a straightforward TCP connection after headers */ + socket->ops = &tcp_conn_ops; /* Reset all of the variables */ inode->size = content_length = -1; |