Remove bogus consts from urlinfo_s structure

This commit is contained in:
Panu Matilainen 2008-03-24 20:44:48 +02:00
parent c4659498e3
commit e1e66978a1
2 changed files with 16 additions and 16 deletions

View File

@ -28,14 +28,14 @@ typedef struct urlinfo_s * urlinfo;
* URL control structure.
*/
struct urlinfo_s {
const char * url; /*!< copy of original url */
const char * scheme; /*!< URI scheme. */
const char * user; /*!< URI user. */
const char * password; /*!< URI password. */
const char * host; /*!< URI host. */
const char * portstr; /*!< URI port string. */
const char * proxyu; /*!< FTP: proxy user */
const char * proxyh; /*!< FTP/HTTP: proxy host */
char * url; /*!< copy of original url */
char * scheme; /*!< URI scheme. */
char * user; /*!< URI user. */
char * password; /*!< URI password. */
char * host; /*!< URI host. */
char * portstr; /*!< URI port string. */
char * proxyu; /*!< FTP: proxy user */
char * proxyh; /*!< FTP/HTTP: proxy host */
int proxyp; /*!< FTP/HTTP: proxy port */
int port; /*!< URI port. */
int urltype; /*!< URI type. */

View File

@ -50,14 +50,14 @@ urlinfo urlNew()
urlinfo urlFree(urlinfo u)
{
URLSANE(u);
u->url = _constfree(u->url);
u->scheme = _constfree(u->scheme);
u->user = _constfree(u->user);
u->password = _constfree(u->password);
u->host = _constfree(u->host);
u->portstr = _constfree(u->portstr);
u->proxyu = _constfree(u->proxyu);
u->proxyh = _constfree(u->proxyh);
u->url = _free(u->url);
u->scheme = _free(u->scheme);
u->user = _free(u->user);
u->password = _free(u->password);
u->host = _free(u->host);
u->portstr = _free(u->portstr);
u->proxyu = _free(u->proxyu);
u->proxyh = _free(u->proxyh);
u = _free(u);
return NULL;