Changeset 2231302 for lib


Ignore:
Timestamp:
2007-11-05T22:59:49Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
be68d99
Parents:
5e2615a (diff), 7435ccf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging from Jelmer.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r5e2615a r2231302  
    322322}
    323323
    324 #ifdef IPV6
    325324/* Wrap an IPv4 address into IPv6 space. Not thread-safe... */
    326325char *ipv6_wrap( char *src )
     
    360359        return ( src + 7 );
    361360}
    362 #endif
    363361
    364362/* Convert from one charset to another.
  • lib/proxy.c

    r5e2615a r2231302  
    211211        }
    212212
    213         if (proxyuser && *proxyuser) {
     213        if (strlen(proxyuser) > 0) {
    214214                char *t1, *t2;
    215215                t1 = g_strdup_printf("%s:%s", proxyuser, proxypass);
     
    539539        phb->data = data;
    540540       
    541         if ((proxytype == PROXY_NONE) || !proxyhost || !proxyhost[0] || !proxyport || (proxyport == -1))
     541        if ((proxytype == PROXY_NONE) || strlen(proxyhost) > 0 || !proxyport || (proxyport == -1))
    542542                return proxy_connect_none(host, port, phb);
    543543        else if (proxytype == PROXY_HTTP)
Note: See TracChangeset for help on using the changeset viewer.