--- libaitwww/src/url.c 2012/09/20 14:19:45 1.3 +++ libaitwww/src/url.c 2013/05/26 20:30:43 1.3.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: url.c,v 1.3 2012/09/20 14:19:45 misho Exp $ +* $Id: url.c,v 1.3.4.2 2013/05/26 20:30:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -52,7 +52,7 @@ SUCH DAMAGE. * @url = Input URL * return: -1 error or 0 ok */ -inline int +int www_URLInit(struct tagIOURL * __restrict url) { if (!url) @@ -189,9 +189,9 @@ www_URLGetFile(struct tagIOURL * __restrict url, ait_v if (!url || !value) return -1; - psBuf = io_strdup(AIT_GET_STR(&url->url_path)); + psBuf = e_strdup(AIT_GET_STR(&url->url_path)); if (!psBuf) { - www_SetErr(io_GetErrno(), "%s", io_GetError()); + www_SetErr(elwix_GetErrno(), "%s", elwix_GetError()); return -1; } else AIT_FREE_VAL(value); @@ -210,7 +210,7 @@ www_URLGetFile(struct tagIOURL * __restrict url, ait_v } AIT_SET_STR(value, pos); - io_free(psBuf); + e_free(psBuf); return ret; } @@ -220,7 +220,7 @@ www_URLGetFile(struct tagIOURL * __restrict url, ait_v * @url = Input parsed URL * return: none */ -inline void +void www_URLFree(struct tagIOURL * __restrict url) { AIT_FREE_VAL(&url->url_tech);