diff options
author | Anthony Ramine <[email protected]> | 2013-10-15 10:36:42 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2013-12-02 15:20:50 +0100 |
commit | 012e6ee060c5b2c3933fb3ca8058ab63bac30962 (patch) | |
tree | 6cfd31ff648601264de56ab06a7880c0902a7f9d /lib/erl_interface/src/connect | |
parent | c4b08fb1832695007a5f96f24d4ee5ca1a00d5de (diff) | |
download | otp-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;
^ ~~~~~~~~~~~
*
Diffstat (limited to 'lib/erl_interface/src/connect')
-rw-r--r-- | lib/erl_interface/src/connect/ei_resolve.c | 2 |
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++; |