From f6f54a403720e7260050634a85d2d3783e0da76d Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 22 Aug 2012 11:53:08 +0100 Subject: [PATCH] libcsa: Warning prevention Remove 'implicit declaration' warnings by included correct ANSI C headers. Correct some format strings for long ints. --- cde/lib/csa/convert4-5.c | 4 ++-- cde/lib/csa/reparser.y | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cde/lib/csa/convert4-5.c b/cde/lib/csa/convert4-5.c index 344c4a2a..c7c0463b 100644 --- a/cde/lib/csa/convert4-5.c +++ b/cde/lib/csa/convert4-5.c @@ -144,12 +144,12 @@ _DtCm_appt4_to_attrs( ptr2 = (ptr1 ? strchr(ptr1, '.') : NULL); if (ptr1) { - snprintf(buf, sizeof buf, "%d:%s%s%s", a4->appt_id.key, calname, + snprintf(buf, sizeof buf, "%ld:%s%s%s", a4->appt_id.key, calname, (ptr2 == NULL ? "." : ""), (ptr2 == NULL ? _DtCmGetLocalDomain(ptr1+1) : "")); } else { - snprintf(buf, sizeof buf, "%d:%s@%s", a4->appt_id.key, calname, + snprintf(buf, sizeof buf, "%ld:%s@%s", a4->appt_id.key, calname, _DtCmGetHostAtDomain()); } opq.size = strlen(buf); diff --git a/cde/lib/csa/reparser.y b/cde/lib/csa/reparser.y index 4c2a19a2..927af543 100644 --- a/cde/lib/csa/reparser.y +++ b/cde/lib/csa/reparser.y @@ -9,6 +9,8 @@ #include #include +#include +#include #include #include #include "rerule.h" -- 2.25.1