From: Stas Boukarev Date: Mon, 3 Jun 2013 16:30:19 +0000 (+0400) Subject: sb-bsd-sockets: Fix type of canonname in addrinfo. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=11aa29a68039d6fb3cf41d67352a6b263b1094b6;p=sbcl.git sb-bsd-sockets: Fix type of canonname in addrinfo. Should be c-string-pointer, not c-string. Fixes lp#1187041, patch by Jerry James. --- diff --git a/NEWS b/NEWS index 36c42df..4da7f8c 100644 --- a/NEWS +++ b/NEWS @@ -2,14 +2,16 @@ changes relative to sbcl-1.1.8: * enchancement: disassemble now annotates some previously missing static functions, like LENGTH. - * bug fix: problems with NCONC type derivation (reported by Jerry James). * optimization: calls to static functions on x86-64 use less instructions. * optimization: compute encode-universal-time at compile time when possible. * optimization: when referencing internal functions as #'x, don't go through an indirect fdefn structure. * optimization: SLEEP doesn't cons on non-immediate floats and on ratios. + * bug fix: problems with NCONC type derivation (reported by Jerry James). * bug fix: EXPT type derivation no longer constructs bogus floating-point types. (reported by Vsevolod Dyomkin) + * bug fix: sb-bsd-sockets has correct declaration of the canonname field of + addrinfo. (lp#1187041, patch by Jerry James) changes in sbcl-1.1.8 relative to sbcl-1.1.7: * notice: The implementation of MAP-ALLOCATED-OBJECTS (the heart of diff --git a/contrib/sb-bsd-sockets/constants.lisp b/contrib/sb-bsd-sockets/constants.lisp index eeabd11..92c017e 100644 --- a/contrib/sb-bsd-sockets/constants.lisp +++ b/contrib/sb-bsd-sockets/constants.lisp @@ -279,7 +279,7 @@ #+darwin (integer addrlen "socklen_t" "ai_addrlen") #-darwin (integer addrlen "size_t" "ai_addrlen") ((* sockaddr-in) addr "struct sockaddr*" "ai_addr") - (c-string canonname "char *" "ai_canonname") + (c-string-pointer canonname "char *" "ai_canonname") ((* t) next "struct addrinfo*" "ai_next"))) #+sb-bsd-sockets-addrinfo