diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-23 14:32:46 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-23 14:32:46 +0000 |
commit | a08614f1b58fab6f1cb652bd66bdc00dec2ae4f9 (patch) | |
tree | 509e114bc719d84ce851f6996665912733e9039c /sbin/iked | |
parent | 2b2d21f49bcab1720c76ce6a51af4eac8443c703 (diff) |
Add a cast for input to inet_pton() to silence a possible but harmless
compiler warning.
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/ikev2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 5c2113f3cbe..bd87651b67d 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.78 2012/10/22 10:25:17 reyk Exp $ */ +/* $OpenBSD: ikev2.c,v 1.79 2012/10/23 14:32:45 reyk Exp $ */ /* $vantronix: ikev2.c,v 1.101 2010/06/03 07:57:33 reyk Exp $ */ /* @@ -1045,14 +1045,14 @@ ikev2_policy2id(struct iked_static_id *polid, struct iked_id *id, int srcid) switch (id->id_type) { case IKEV2_ID_IPV4: - if (inet_pton(AF_INET, polid->id_data, &in4) != 1 || + if (inet_pton(AF_INET, (char *)polid->id_data, &in4) != 1 || ibuf_add(id->id_buf, &in4, sizeof(in4)) != 0) { ibuf_release(id->id_buf); return (-1); } break; case IKEV2_ID_IPV6: - if (inet_pton(AF_INET6, polid->id_data, &in6) != 1 || + if (inet_pton(AF_INET6, (char *)polid->id_data, &in6) != 1 || ibuf_add(id->id_buf, &in6, sizeof(in6)) != 0) { ibuf_release(id->id_buf); return (-1); |