[Reconnoiter-devel] [reconnoiter commit] r1126 - trunk/src

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Wed Nov 25 13:19:58 EST 2009


Author: jesus
Date: 2009-11-25 13:19:58 -0500 (Wed, 25 Nov 2009)
New Revision: 1126

Modified:
   trunk/src/stratcon_datastore.c
Log:
fix warning #34

Modified: trunk/src/stratcon_datastore.c
===================================================================
--- trunk/src/stratcon_datastore.c	2009-11-25 13:35:06 UTC (rev 1125)
+++ trunk/src/stratcon_datastore.c	2009-11-25 18:19:58 UTC (rev 1126)
@@ -455,7 +455,7 @@
     if(!pgerr_end) pgerr_end = pgerr + strlen(pgerr); \
     noitL(ds_err, "[%s] stratcon datasource bad (%d): %.*s\n", \
           cq->fqdn ? cq->fqdn : "metanode", d->rv, \
-          (pgerr_end - pgerr), pgerr); \
+          (int)(pgerr_end - pgerr), pgerr); \
     PQclear(d->res); \
     goto bad_row; \
   } \
@@ -477,7 +477,7 @@
     const char *pgerr_end = strchr(pgerr, '\n'); \
     if(!pgerr_end) pgerr_end = pgerr + strlen(pgerr); \
     noitL(ds_err, "stratcon datasource bad (%d): %.*s time: %llu\n", \
-          d->rv, (pgerr_end - pgerr), pgerr, \
+          d->rv, (int)(pgerr_end - pgerr), pgerr, \
           (long long unsigned)whence); \
     PQclear(d->res); \
     goto bad_row; \



More information about the Reconnoiter-devel mailing list