You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/05/15 16:15:55 UTC
cvs commit: apr/passwd apr_md5.c
wrowe 01/05/15 07:15:53
Modified: include apr.hw apr_md5.h
passwd apr_md5.c
Log:
Byte counts are apr_size_t, win32 declares a goofy ptrdiff_t that
corresponds to a normal ssize_t.
Revision Changes Path
1.64 +2 -2 apr/include/apr.hw
Index: apr.hw
===================================================================
RCS file: /home/cvs/apr/include/apr.hw,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- apr.hw 2001/05/10 18:10:26 1.63
+++ apr.hw 2001/05/15 14:15:37 1.64
@@ -226,8 +226,8 @@
typedef __int64 apr_int64_t;
typedef unsigned __int64 apr_uint64_t;
-typedef int apr_size_t;
-typedef int apr_ssize_t;
+typedef size_t apr_size_t;
+typedef ptrdiff_t apr_ssize_t;
typedef _off_t apr_off_t;
typedef size_t apr_socklen_t;
typedef int pid_t;
1.23 +2 -2 apr/include/apr_md5.h
Index: apr_md5.h
===================================================================
RCS file: /home/cvs/apr/include/apr_md5.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- apr_md5.h 2001/02/16 04:15:46 1.22
+++ apr_md5.h 2001/05/15 14:15:40 1.23
@@ -143,11 +143,11 @@
* @param context The MD5 content to update.
* @param input next message block to update
* @param inputLen The length of the next message block
- * @deffunc apr_status_t apr_md5_update(apr_md5_ctx_t *context, const unsigned char *input, unsigned int inputLen)
+ * @deffunc apr_status_t apr_md5_update(apr_md5_ctx_t *context, apr_size_t char *input, unsigned int inputLen)
*/
APR_DECLARE(apr_status_t) apr_md5_update(apr_md5_ctx_t *context,
const unsigned char *input,
- unsigned int inputLen);
+ apr_size_t inputLen);
/**
* MD5 finalization. Ends an MD5 message-digest operation, writing the
1.10 +2 -2 apr/passwd/apr_md5.c
Index: apr_md5.c
===================================================================
RCS file: /home/cvs/apr/passwd/apr_md5.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- apr_md5.c 2001/02/25 20:39:36 1.9
+++ apr_md5.c 2001/05/15 14:15:50 1.10
@@ -231,7 +231,7 @@
*/
APR_DECLARE(apr_status_t) apr_md5_update(apr_md5_ctx_t *context,
const unsigned char *input,
- unsigned int inputLen)
+ apr_size_t inputLen)
{
unsigned int i, idx, partLen;
#if APR_HAS_XLATE
@@ -503,7 +503,7 @@
char passwd[120], *p;
const char *sp, *ep;
unsigned char final[MD5_DIGESTSIZE];
- int sl, pl, i;
+ apr_ssize_t sl, pl, i;
apr_md5_ctx_t ctx, ctx1;
unsigned long l;