RTSP: cleanups

Made several functions static

Made one function defined to nothing when RTSP is disabled to avoid
the #ifdefs in code.

Removed explicit rtsp.h includes
This commit is contained in:
Daniel Stenberg
2011-05-05 16:53:05 +02:00
parent f0612f166a
commit 9c629e5348
6 changed files with 19 additions and 23 deletions

View File

@@ -96,7 +96,6 @@
#include "multiif.h"
#include "rawstr.h"
#include "content_encoding.h"
#include "rtsp.h"
#include "http_proxy.h"
#include "warnless.h"
#include "non-ascii.h"
@@ -3314,13 +3313,12 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
}
}
}
#ifndef CURL_DISABLE_RTSP
else if(conn->handler->protocol & CURLPROTO_RTSP) {
result = Curl_rtsp_parseheader(conn, k->p);
if(result)
return result;
}
#endif
/*
* End of header-checks. Write them to the client.
*/