Note that evhttp_hostportfile is not threadsafe, and so its usage will change. Mark its first argument const. Remove a now-redundant declaration for it in http-internal.h.
svn:r743
/**
* Separate the host, port and path component from a URL.
+ * XXXX This interface will change before release to become threadsafe.
*
* @param url the url for which to separate the components
* @param phost pointer in which to store the pointer to the host
* @param pfile pointer in which to store the pointer to the path
* @return 0 on success and -1 on failure
*/
-int evhttp_hostportfile(char *url, char **phost, u_short *pport, char **pfile);
+int evhttp_hostportfile(const char *url, char **phost, u_short *pport, char **pfile);
#ifdef __cplusplus
}
void evhttp_get_request(struct evhttp *, evutil_socket_t, struct sockaddr *, socklen_t);
-int evhttp_hostportfile(char *, char **, u_short *, char **);
-
int evhttp_parse_lines(struct evhttp_request *, struct evbuffer*);
void evhttp_start_read(struct evhttp_connection *);
/* Separate host, port and file from URI */
int
-evhttp_hostportfile(char *url, char **phost, u_short *pport, char **pfile)
+evhttp_hostportfile(const char *url, char **phost, u_short *pport, char **pfile)
{
/* XXX not threadsafe. */
static char host[1024];
}
static void
-http_chunked_test()
+http_chunked_test(void)
{
struct bufferevent *bev;
int fd;