inputStream_http: stop mixing declarations with code

git-svn-id: https://svn.musicpd.org/mpd/trunk@5242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong 2007-01-14 02:08:07 +00:00
parent 1d9b6076cb
commit 8a38b28e86

View File

@ -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;