mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
libcsa: Warning prevention
Remove 'implicit declaration' warnings by included correct ANSI C headers. Correct some format strings for long ints.
This commit is contained in:
parent
20c107bce2
commit
f6f54a4037
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include <EUSCompat.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
#include "rerule.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue