summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares__close_sockets.c2
-rw-r--r--ares__get_hostent.c2
-rw-r--r--ares__read_line.c2
-rw-r--r--ares_cancel.c2
-rw-r--r--ares_destroy.c2
-rw-r--r--ares_expand_name.c2
-rw-r--r--ares_expand_string.c6
-rw-r--r--ares_free_hostent.c2
-rw-r--r--ares_free_string.c3
-rw-r--r--ares_gethostbyname.c2
-rw-r--r--ares_mkquery.c3
-rw-r--r--ares_parse_a_reply.c2
-rw-r--r--ares_parse_ptr_reply.c2
-rw-r--r--ares_query.c2
-rw-r--r--ares_search.c2
-rw-r--r--ares_send.c2
-rw-r--r--ares_strerror.c2
-rw-r--r--ares_timeout.c2
-rw-r--r--bitncmp.c2
-rw-r--r--inet_net_pton.c2
-rw-r--r--setup.h2
-rw-r--r--windows_port.c2
22 files changed, 48 insertions, 2 deletions
diff --git a/ares__close_sockets.c b/ares__close_sockets.c
index 7475a4b..dcb319e 100644
--- a/ares__close_sockets.c
+++ b/ares__close_sockets.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares__get_hostent.c b/ares__get_hostent.c
index ca6f2f1..5220400 100644
--- a/ares__get_hostent.c
+++ b/ares__get_hostent.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares__read_line.c b/ares__read_line.c
index f4d4f50..d965904 100644
--- a/ares__read_line.c
+++ b/ares__read_line.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_cancel.c b/ares_cancel.c
index 4df1e9f..f2f6c7e 100644
--- a/ares_cancel.c
+++ b/ares_cancel.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright (C) 2004 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
diff --git a/ares_destroy.c b/ares_destroy.c
index d3860da..61028a6 100644
--- a/ares_destroy.c
+++ b/ares_destroy.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_expand_name.c b/ares_expand_name.c
index 8c5be9b..950ea74 100644
--- a/ares_expand_name.c
+++ b/ares_expand_name.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_expand_string.c b/ares_expand_string.c
index dcb0c02..58d209a 100644
--- a/ares_expand_string.c
+++ b/ares_expand_string.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
@@ -53,13 +55,13 @@ int ares_expand_string(const unsigned char *encoded,
*s = malloc(len+1);
if (*s == NULL)
return ARES_ENOMEM;
- q = *s;
+ q = *s;
strncpy((char *)q, (char *)encoded, len);
q[len] = '\0';
*s = q;
- *enclen = len+1;
+ *enclen = len+1;
return ARES_SUCCESS;
}
diff --git a/ares_free_hostent.c b/ares_free_hostent.c
index 8d6967e..a41624f 100644
--- a/ares_free_hostent.c
+++ b/ares_free_hostent.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_free_string.c b/ares_free_string.c
index 5fa646b..2da45bc 100644
--- a/ares_free_string.c
+++ b/ares_free_string.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 2000 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
@@ -16,6 +18,7 @@
#include "setup.h"
#include <stdlib.h>
#include "ares.h"
+#include "ares_private.h"
void ares_free_string(void *str)
{
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index bdc9029..e1696ac 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_mkquery.c b/ares_mkquery.c
index d5c40cb..43b6754 100644
--- a/ares_mkquery.c
+++ b/ares_mkquery.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
@@ -30,6 +32,7 @@
#include <string.h>
#include "ares.h"
#include "ares_dns.h"
+#include "ares_private.h"
/* Header format, from RFC 1035:
* 1 1 1 1 1 1
diff --git a/ares_parse_a_reply.c b/ares_parse_a_reply.c
index 8f69bf0..60246d3 100644
--- a/ares_parse_a_reply.c
+++ b/ares_parse_a_reply.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c
index 2bac907..21ea8fa 100644
--- a/ares_parse_ptr_reply.c
+++ b/ares_parse_ptr_reply.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_query.c b/ares_query.c
index 47c0670..4f044d8 100644
--- a/ares_query.c
+++ b/ares_query.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_search.c b/ares_search.c
index dc416c0..816e160 100644
--- a/ares_search.c
+++ b/ares_search.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_send.c b/ares_send.c
index 83cea80..f0a85ad 100644
--- a/ares_send.c
+++ b/ares_send.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_strerror.c b/ares_strerror.c
index 6e9fa0e..326e6fb 100644
--- a/ares_strerror.c
+++ b/ares_strerror.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/ares_timeout.c b/ares_timeout.c
index c550218..c6af87e 100644
--- a/ares_timeout.c
+++ b/ares_timeout.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
diff --git a/bitncmp.c b/bitncmp.c
index 0da540f..0d4ce56 100644
--- a/bitncmp.c
+++ b/bitncmp.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 by Internet Software Consortium.
diff --git a/inet_net_pton.c b/inet_net_pton.c
index e028ec6..3621bb8 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 by Internet Software Consortium.
diff --git a/setup.h b/setup.h
index c6ec261..4dcfa81 100644
--- a/setup.h
+++ b/setup.h
@@ -1,6 +1,8 @@
#ifndef __ARES_SETUP_H
#define __ARES_SETUP_H
+/* $Id: */
+
/* Copyright (C) 2004 - 2005 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
diff --git a/windows_port.c b/windows_port.c
index e80d00d..3dc8c78 100644
--- a/windows_port.c
+++ b/windows_port.c
@@ -1,5 +1,7 @@
#include "setup.h"
+/* $Id: */
+
/* only do the following on windows
*/
#if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS)