apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587658 - /apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c
Date Tue, 23 Oct 2007 21:21:42 GMT
Author: wrowe
Date: Tue Oct 23 14:21:42 2007
New Revision: 587658

URL: http://svn.apache.org/viewvc?rev=587658&view=rev
Log:
Solve the rest of trunk r587439 in an entirely different
way, since the abstractions are different.

Modified:
    apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c

Modified: apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c?rev=587658&r1=587657&r2=587658&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c (original)
+++ apr/apr-util/branches/1.2.x/dbm/apr_dbm_sdbm.c Tue Oct 23 14:21:42 2007
@@ -41,10 +41,12 @@
 typedef apr_sdbm_t *real_file_t;
 
 typedef apr_sdbm_datum_t cvt_datum_t;
-#define CONVERT_DATUM(cvt, pinput) ((cvt).dptr = (pinput)->dptr, (cvt).dsize = (pinput)->dsize)
+#define CONVERT_DATUM(cvt, pinput) \
+        ((cvt).dptr = (pinput)->dptr, (cvt).dsize = (int)(pinput)->dsize)
 
 typedef apr_sdbm_datum_t result_datum_t;
-#define RETURN_DATUM(poutput, rd) ((poutput)->dptr = (rd).dptr, (poutput)->dsize =
(rd).dsize)
+#define RETURN_DATUM(poutput, rd) \
+        ((poutput)->dptr = (rd).dptr, (poutput)->dsize = (rd).dsize)
 
 #define APR_DBM_CLOSE(f)        apr_sdbm_close(f)
 #define APR_DBM_FETCH(f, k, v)  apr_sdbm_fetch(f, &(v), (k))



Mime
View raw message