summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog6
-rw-r--r--src/dnsbase.c8
-rw-r--r--src/syslog_async.c1
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0335e49..adb0863 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-06 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/dnsbase.c (dns_resolve_hostname,a_lookup): Change
+ initialization of domainbuf.
+ * src/syslog_async.c: Include fcntl.h.
+
2008-02-04 Sergey Poznyakoff <gray@gnu.org.ua>
* configure.ac: Check for locale.h
diff --git a/src/dnsbase.c b/src/dnsbase.c
index 3d06316..ba5de17 100644
--- a/src/dnsbase.c
+++ b/src/dnsbase.c
@@ -576,8 +576,9 @@ dns_resolve_hostname(const char *host, char *answer, size_t answer_size,
{
struct loop_data ld;
char namebuf[NSIZE];
- char domainbuf[NSIZE] = "";
-
+ char domainbuf[NSIZE];
+
+ domainbuf[0] = 0;
ld.qtype = ld.atype = T_A;
strncpy(namebuf, host, sizeof namebuf - 1);
@@ -616,8 +617,9 @@ a_lookup(const char *host,
{
struct loop_data ld;
char namebuf[NSIZE];
- char domainbuf[NSIZE] = "";
+ char domainbuf[NSIZE];
+ domainbuf[0] = 0;
ld.qtype = ld.atype = T_A;
strncpy(namebuf, host, sizeof namebuf - 1);
ld.name = namebuf;
diff --git a/src/syslog_async.c b/src/syslog_async.c
index 006cf16..0882f7b 100644
--- a/src/syslog_async.c
+++ b/src/syslog_async.c
@@ -24,6 +24,7 @@
#include <sys/syslog.h>
#include <netinet/in.h>
#include <signal.h>
+#include <fcntl.h>
#include <sys/uio.h>
#include <sys/wait.h>

Return to:

Send suggestions and report system problems to the System administrator.