aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-10-15 10:36:42 +0200
committerHenrik Nord <[email protected]>2013-12-02 15:20:50 +0100
commit012e6ee060c5b2c3933fb3ca8058ab63bac30962 (patch)
tree6cfd31ff648601264de56ab06a7880c0902a7f9d
parentc4b08fb1832695007a5f96f24d4ee5ca1a00d5de (diff)
downloadotp-012e6ee060c5b2c3933fb3ca8058ab63bac30962.tar.gz
otp-012e6ee060c5b2c3933fb3ca8058ab63bac30962.tar.bz2
otp-012e6ee060c5b2c3933fb3ca8058ab63bac30962.zip
Silence a mismatching type pointer warning in ei_resolve
Why we are assigning a pointer to pointer to char to a pointer to char baffles me. The warning is: connect/ei_resolve.c:229:11: warning: incompatible pointer types assigning to 'char *' from 'char **'; dereference with * [-Wincompatible-pointer-types] *pptr = src_aliases; ^ ~~~~~~~~~~~ *
-rw-r--r--lib/erl_interface/src/connect/ei_resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/connect/ei_resolve.c b/lib/erl_interface/src/connect/ei_resolve.c
index 2545c5f3de..494dba072c 100644
--- a/lib/erl_interface/src/connect/ei_resolve.c
+++ b/lib/erl_interface/src/connect/ei_resolve.c
@@ -226,7 +226,7 @@ static int copy_hostent(struct hostent *dest, const struct hostent *src, char *b
while(*(src_aliases)) {
if (buflen < sizeof(*pptr)) return -1;
- *pptr = src_aliases;
+ *pptr = (char *)src_aliases;
advance_buf(buffer,buflen,sizeof(*pptr));
src_aliases++;
pptr++;