"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/http-addrlist.c" between
htmldoc-1.9.11-source.tar.gz and htmldoc-1.9.12-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

http-addrlist.c  (htmldoc-1.9.11-source):http-addrlist.c  (htmldoc-1.9.12-source)
/* /*
* HTTP address list routines for HTMLDOC. * HTTP address list routines for HTMLDOC.
* *
* Copyright © 2020 by Michael R Sweet * Copyright © 2020-2021 by Michael R Sweet
* Copyright © 2007-2018 by Apple Inc. * Copyright © 2007-2018 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products, all rights reserved. * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
* *
* Licensed under Apache License v2.0. See the file "LICENSE" for more * Licensed under Apache License v2.0. See the file "LICENSE" for more
* information. * information.
*/ */
/* /*
* Include necessary headers... * Include necessary headers...
*/ */
skipping to change at line 481 skipping to change at line 481
*/ */
http_addrlist_t * /* O - List of addresses or NULL */ http_addrlist_t * /* O - List of addresses or NULL */
httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for passive listen address */ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for passive listen address */
int family, /* I - Address family or AF_UNSPEC */ int family, /* I - Address family or AF_UNSPEC */
const char *service) /* I - Service name or port number */ const char *service) /* I - Service name or port number */
{ {
http_addrlist_t *first, /* First address in list */ http_addrlist_t *first, /* First address in list */
*addr, /* Current address in list */ *addr, /* Current address in list */
*temp; /* New address */ *temp; /* New address */
char ipv6[64]; /* IPv6 address */
// _cups_globals_t *cg = _cupsGlobals(); // _cups_globals_t *cg = _cupsGlobals();
/* Global data */ /* Global data */
#ifdef DEBUG #ifdef DEBUG
_cups_debug_printf("httpAddrGetList(hostname=\"%s\", family=AF_%s, " _cups_debug_printf("httpAddrGetList(hostname=\"%s\", family=AF_%s, "
"service=\"%s\")\n", "service=\"%s\")\n",
hostname ? hostname : "(nil)", hostname ? hostname : "(nil)",
family == AF_UNSPEC ? "UNSPEC" : family == AF_UNSPEC ? "UNSPEC" :
# ifdef AF_LOCAL # ifdef AF_LOCAL
family == AF_LOCAL ? "LOCAL" : family == AF_LOCAL ? "LOCAL" :
skipping to change at line 549 skipping to change at line 550
} }
} }
else else
#endif /* AF_LOCAL */ #endif /* AF_LOCAL */
if (!hostname || _cups_strcasecmp(hostname, "localhost")) if (!hostname || _cups_strcasecmp(hostname, "localhost"))
{ {
#ifdef HAVE_GETADDRINFO #ifdef HAVE_GETADDRINFO
struct addrinfo hints, /* Address lookup hints */ struct addrinfo hints, /* Address lookup hints */
*results, /* Address lookup results */ *results, /* Address lookup results */
*current; /* Current result */ *current; /* Current result */
char ipv6[64], /* IPv6 address */ char *ipv6zone; /* Pointer to zone separator */
*ipv6zone; /* Pointer to zone separator */
int ipv6len; /* Length of IPv6 address */ int ipv6len; /* Length of IPv6 address */
int error; /* getaddrinfo() error */ int error; /* getaddrinfo() error */
/* /*
* Lookup the address as needed... * Lookup the address as needed...
*/ */
memset(&hints, 0, sizeof(hints)); memset(&hints, 0, sizeof(hints));
hints.ai_family = family; hints.ai_family = family;
hints.ai_flags = hostname ? 0 : AI_PASSIVE; hints.ai_flags = hostname ? 0 : AI_PASSIVE;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)