apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr-util/test testdate.c testmd4.c
Date Wed, 28 Nov 2001 03:32:56 GMT
trawick     01/11/27 19:32:56

  Modified:    test     testdate.c testmd4.c
  Log:
  fix some warnings in these test programs on Tru64
  
  Revision  Changes    Path
  1.5       +3 -3      apr-util/test/testdate.c
  
  Index: testdate.c
  ===================================================================
  RCS file: /home/cvs/apr-util/test/testdate.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- testdate.c	2001/08/24 18:08:52	1.4
  +++ testdate.c	2001/11/28 03:32:56	1.5
  @@ -101,7 +101,7 @@
       static const char *const days[7]=
           {"Sun","Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
       struct tm *tms;
  -    long ls = (long)sec;
  +    time_t ls = (time_t)sec;
   
       tms = gmtime(&ls);
    
  @@ -117,7 +117,7 @@
               "Saturday"};
       struct tm *tms;
       int year;
  -    long ls = (long)sec;
  +    time_t ls = (time_t)sec;
    
       tms = gmtime(&ls);
   
  @@ -134,7 +134,7 @@
       static const char *const days[7]=
          {"Sun","Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
       struct tm *tms;
  -    long ls = (long)sec;
  +    time_t ls = (time_t)sec;
    
       tms = gmtime(&ls);
    
  
  
  
  1.4       +3 -3      apr-util/test/testmd4.c
  
  Index: testmd4.c
  ===================================================================
  RCS file: /home/cvs/apr-util/test/testmd4.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- testmd4.c	2001/08/24 18:10:17	1.3
  +++ testmd4.c	2001/11/28 03:32:56	1.4
  @@ -119,7 +119,7 @@
       unsigned int len = strlen(string);
   
       apr_md4_init(&context);
  -    apr_md4_update(&context, string, len);
  +    apr_md4_update(&context, (unsigned char *)string, len);
       apr_md4_final(digest, &context);
   
       apr_file_printf (out, "MD4 (\"%s\") = ", string);
  @@ -189,7 +189,7 @@
   {
       apr_file_t *file;
       apr_md4_ctx_t context;
  -    int len = 1024;
  +    apr_size_t len = 1024;
       unsigned char buffer[1024], digest[APR_MD4_DIGESTSIZE];
   
       if (apr_file_open(&file, filename, APR_READ, APR_OS_DEFAULT, local_pool) 
  @@ -217,7 +217,7 @@
   static void MDFilter(void)
   {
       apr_md4_ctx_t context;
  -    int len = 16;
  +    apr_size_t len = 16;
       unsigned char buffer[16], digest[16];
   
       apr_md4_init(&context);
  
  
  

Mime
View raw message