Diff for /libaitwww/src/url.c between versions 1.3 and 1.3.4.2

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

Removed from v.1.3  
changed lines
  Added in v.1.3.4.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>