mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 12:02:10 -05:00
Merge branch '1770-review-how-we-use-sys-un-h' into 'v9_16'
Fix typo in ISC_PLAFORM_HAVESYSUNH See merge request isc-projects/bind9!4417
This commit is contained in:
commit
e5dc276c65
1 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
|
|||
snprintf(pbuf, sizeof(pbuf), "%u",
|
||||
ntohs(sockaddr->type.sin6.sin6_port));
|
||||
break;
|
||||
#ifdef ISC_PLAFORM_HAVESYSUNH
|
||||
#ifdef ISC_PLATFORM_HAVESYSUNH
|
||||
case AF_UNIX:
|
||||
plen = strlen(sockaddr->type.sunix.sun_path);
|
||||
if (plen >= isc_buffer_availablelength(target)) {
|
||||
|
|
@ -157,7 +157,7 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
|
|||
avail.base[0] = '\0';
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
#endif /* ifdef ISC_PLAFORM_HAVESYSUNH */
|
||||
#endif /* ifdef ISC_PLATFORM_HAVESYSUNH */
|
||||
default:
|
||||
return (ISC_R_FAILURE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue