diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/asr/asr_private.h | 4 | ||||
-rw-r--r-- | lib/libc/asr/res_send_async.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/asr/asr_private.h b/lib/libc/asr/asr_private.h index a28f0db30af..3052eca3eea 100644 --- a/lib/libc/asr/asr_private.h +++ b/lib/libc/asr/asr_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asr_private.h,v 1.14 2013/04/01 15:49:54 deraadt Exp $ */ +/* $OpenBSD: asr_private.h,v 1.15 2013/04/01 16:04:03 deraadt Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -310,7 +310,7 @@ int pack_query(struct pack *, uint16_t, uint16_t, const char *); void unpack_init(struct unpack *, const char *, size_t); int unpack_header(struct unpack *, struct header *); -int unpack_query(struct unpack *, struct query*); +int unpack_query(struct unpack *, struct query *); int unpack_rr(struct unpack *, struct rr *); int sockaddr_from_str(struct sockaddr *, int, const char *); ssize_t dname_from_fqdn(const char *, char *, size_t); diff --git a/lib/libc/asr/res_send_async.c b/lib/libc/asr/res_send_async.c index 7d85f51ad3f..569bf323d2d 100644 --- a/lib/libc/asr/res_send_async.c +++ b/lib/libc/asr/res_send_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send_async.c,v 1.10 2013/04/01 15:49:54 deraadt Exp $ */ +/* $OpenBSD: res_send_async.c,v 1.11 2013/04/01 16:04:03 deraadt Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -536,7 +536,7 @@ tcp_write(struct async *as) if (as->as.dns.datalen < sizeof(len)) { offset = 0; len = htons(as->as.dns.obuflen); - iov[i].iov_base = (char*)(&len) + as->as.dns.datalen; + iov[i].iov_base = (char *)(&len) + as->as.dns.datalen; iov[i].iov_len = sizeof(len) - as->as.dns.datalen; i++; } else |