Skip to content

Commit

Permalink
Cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Feb 12, 2014
1 parent d3154ea commit 3f5ef95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>

#include "rdns.h"
#include "dns_private.h"
#include "rdns_curve.h"
Expand Down
1 change: 1 addition & 0 deletions src/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "dns_private.h"
#include "punycode.h"
#include "packet.h"
#include "util.h"

void
rdns_allocate_packet (struct rdns_request* req, unsigned int namelen)
Expand Down
4 changes: 2 additions & 2 deletions src/punycode.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ rdns_utf8_to_ucs4 (const char *in, size_t in_len, uint32_t **out, size_t *out_le
int ret;
uint32_t *res;

p = in;
p = (const unsigned char *)in;
while (remain > 0) {
uint32_t u;

Expand All @@ -280,7 +280,7 @@ rdns_utf8_to_ucs4 (const char *in, size_t in_len, uint32_t **out, size_t *out_le
return -1;
}

p = in;
p = (const unsigned char *)in;
remain = in_len;
olen = 0;
while (remain > 0) {
Expand Down
5 changes: 3 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ rdns_make_inet_socket (int type, struct addrinfo *addr)
static int
rdns_make_unix_socket (const char *path, struct sockaddr_un *addr, int type)
{
int fd = -1, s_error, r, optlen, serrno, on = 1;
struct stat st;
int fd = -1, s_error, r, serrno, on = 1;
struct stat st;
socklen_t optlen;

if (path == NULL) {
return -1;
Expand Down

0 comments on commit 3f5ef95

Please sign in to comment.