aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-14 02:08:07 +0000
committerEric Wong <normalperson@yhbt.net>2007-01-14 02:08:07 +0000
commit8a38b28e860b6d0c1bf481dcf4023e0fda58bb95 (patch)
tree9e8a513a69e0c000fb3b287aed7594a1cadc6991 /src
parent1d9b6076cbc4f311289c7fcf99aa42ae47abc6e3 (diff)
downloadmpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.tar.gz
mpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.tar.xz
mpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.zip
inputStream_http: stop mixing declarations with code
git-svn-id: https://svn.musicpd.org/mpd/trunk@5242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/inputStream_http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 5eb06a086..979ead580 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -711,6 +711,8 @@ int inputStream_httpOpen(InputStream * inStream, char *url)
int inputStream_httpSeek(InputStream * inStream, long offset, int whence)
{
+ InputStreamHTTPData *data;
+
if (!inStream->seekable)
return -1;
@@ -728,7 +730,7 @@ int inputStream_httpSeek(InputStream * inStream, long offset, int whence)
return -1;
}
- InputStreamHTTPData *data = (InputStreamHTTPData *)inStream->data;
+ data = (InputStreamHTTPData *)inStream->data;
close(data->sock);
data->connState = HTTP_CONN_STATE_REOPEN;
data->buflen = 0;