Module: sip-router
Branch: janakj/flatstore
Commit: a543b3fe09b5cd5841e635e08cad4df9eb7bf60c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a543b3f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Feb 7 19:52:38 2006 +0000
- various warning fixes
---
modules/db_flatstore/flatstore.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/db_flatstore/flatstore.c b/modules/db_flatstore/flatstore.c
index 1e77989..4760f8c 100644
--- a/modules/db_flatstore/flatstore.c
+++ b/modules/db_flatstore/flatstore.c
@@ -193,7 +193,7 @@ int flat_db_insert(db_con_t* h, db_key_t* k, db_val_t* v, int n)
delims[3] = '\0';
while (*s) {
len = strcspn(s, delims);
- fprintf(f, "%.*s", len, s);
+ fprintf(f, "%.*s", (int)len, s);
s+= len;
if (*s) {
fprintf(f, "%c%c", flat_escape[0], *s);
@@ -215,7 +215,7 @@ int flat_db_insert(db_con_t* h, db_key_t* k, db_val_t* v, int n)
while (len > 0) {
char *c;
for (c = s; len > 0 && *c != flat_delimiter[0] && *c !=
flat_record_delimiter[0] && *c != flat_escape[0]; c++, len--);
- fprintf(f, "%.*s", c-s, s);
+ fprintf(f, "%.*s", (int)(c-s), s);
s = c;
if (len > 0) {
fprintf(f, "%c%c", flat_escape[0], *s);