summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3e67d2)
raw | patch | inline | side by side (parent: e3e67d2)
author | Florian Forster <octo@noris.net> | |
Mon, 26 May 2008 13:27:35 +0000 (15:27 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Mon, 26 May 2008 13:33:38 +0000 (15:33 +0200) |
src/email.c | patch | blob | history | |
src/ntpd.c | patch | blob | history | |
src/utils_cmd_getval.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 87daed113273227cfd3f82601fea5421159e6b67..ed10e349938d5aadceeaf3c522bce36913aaba3d 100644 (file)
--- a/src/email.c
+++ b/src/email.c
len = strlen (line);
if (('\n' != line[len - 1]) && ('\r' != line[len - 1])) {
- log_warn ("[thread #%5lu] line too long (> %i characters): "
+ log_warn ("[thread #%5lu] line too long (> %lu characters): "
"'%s' (truncated)", self, sizeof (line) - 1, line);
while (NULL != fgets (line, sizeof (line), this->socket))
diff --git a/src/ntpd.c b/src/ntpd.c
index 90fdfd7c587628fd8f035dd43ae9d28b47f87094..7abc7435a3c8a17e7aebe446db602997d27a7720 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
if (pkt_item_len < res_item_size)
pkt_padding = res_item_size - pkt_item_len;
DEBUG ("res_item_size = %i; pkt_padding = %i;",
- res_item_size, pkt_padding);
+ res_item_size, (int) pkt_padding);
/* Extract the sequence number */
pkt_sequence = INFO_SEQ (res.auth_seq);
* We start by allocating some more memory.
*/
DEBUG ("realloc (%p, %i)", (void *) *res_data,
- (items_num + pkt_item_num) * res_item_size);
+ (int) (items_num + pkt_item_num) * res_item_size);
items = realloc ((void *) *res_data,
(items_num + pkt_item_num) * res_item_size);
if (items == NULL)
diff --git a/src/utils_cmd_getval.c b/src/utils_cmd_getval.c
index 01c68996a23f3abda83ac350e48989650180c5fb..470d3022e4881dfa8b8f32b282ff260ce511aac2 100644 (file)
--- a/src/utils_cmd_getval.c
+++ b/src/utils_cmd_getval.c
if (ds->ds_num != values_num)
{
ERROR ("ds[%s]->ds_num = %i, "
- "but uc_get_rate_by_name returned %i values.",
- ds->type, ds->ds_num, values_num);
+ "but uc_get_rate_by_name returned %u values.",
+ ds->type, ds->ds_num, (unsigned int) values_num);
print_to_socket (fh, "-1 Error reading value from cache.\n");
sfree (values);
sfree (identifier_copy);