diff options
author | ng0 <ng0@n0.is> | 2019-11-24 18:22:10 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-24 18:22:10 +0000 |
commit | 330adf7006c7d2cd36723e0df8888e4afc8ac77a (patch) | |
tree | 46f54423904d6c7d9bf3e7f58be9a414d6aadb5d /src/gns/nss/nss_gns.c | |
parent | 52ece4ab06393aafce029f50afbee2ce1aa877d8 (diff) | |
parent | d17a17ea785f91c18b5694eab3372c4e4564d95e (diff) | |
download | gnunet-330adf7006c7d2cd36723e0df8888e4afc8ac77a.tar.gz gnunet-330adf7006c7d2cd36723e0df8888e4afc8ac77a.zip |
Merge branch 'master' of gnunet.org:gnunet
Diffstat (limited to 'src/gns/nss/nss_gns.c')
-rw-r--r-- | src/gns/nss/nss_gns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gns/nss/nss_gns.c b/src/gns/nss/nss_gns.c index beae4d15e..36799ba3a 100644 --- a/src/gns/nss/nss_gns.c +++ b/src/gns/nss/nss_gns.c | |||
@@ -139,8 +139,8 @@ _nss_gns_gethostbyname2_r (const char *name, | |||
139 | goto finish; | 139 | goto finish; |
140 | } | 140 | } |
141 | /* Alias names */ | 141 | /* Alias names */ |
142 | *((char**) buffer) = NULL; | 142 | *((char **) buffer) = NULL; |
143 | result->h_aliases = (char**) buffer; | 143 | result->h_aliases = (char **) buffer; |
144 | idx = sizeof(char*); | 144 | idx = sizeof(char*); |
145 | 145 | ||
146 | /* Official name */ | 146 | /* Official name */ |
@@ -175,9 +175,9 @@ _nss_gns_gethostbyname2_r (const char *name, | |||
175 | 175 | ||
176 | /* Address array address_length is always a multiple of 32bits */ | 176 | /* Address array address_length is always a multiple of 32bits */ |
177 | for (i = 0; i < u.count; i++) | 177 | for (i = 0; i < u.count; i++) |
178 | ((char**) (buffer + idx))[i] = buffer + astart + address_length * i; | 178 | ((char **) (buffer + idx))[i] = buffer + astart + address_length * i; |
179 | ((char**) (buffer + idx))[i] = NULL; | 179 | ((char **) (buffer + idx))[i] = NULL; |
180 | result->h_addr_list = (char**) (buffer + idx); | 180 | result->h_addr_list = (char **) (buffer + idx); |
181 | 181 | ||
182 | status = NSS_STATUS_SUCCESS; | 182 | status = NSS_STATUS_SUCCESS; |
183 | 183 | ||