apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testhash.c
Date Tue, 07 Aug 2001 19:13:27 GMT
trawick     01/08/07 12:13:27

  Modified:    test     testhash.c
  Log:
  fix the type of the length parameter to apr_hash_this()
  
  Revision  Changes    Path
  1.3       +3 -3      apr/test/testhash.c
  
  Index: testhash.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testhash.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testhash.c	2001/08/02 00:13:05	1.2
  +++ testhash.c	2001/08/07 19:13:27	1.3
  @@ -71,12 +71,12 @@
   {
       apr_hash_index_t *hi;
       char *val, *key;
  -    int len;
  +    apr_ssize_t len;
       int i = 0;
   
       for (hi = apr_hash_first(p, h); hi; hi = apr_hash_next(hi)) {
  -        apr_hash_this(hi,(void*) &key, &len,(void*) &val);
  -        fprintf(stdout, "Key %s (%d) Value %s\n",key,len,val);
  +        apr_hash_this(hi,(void*) &key, &len, (void*) &val);
  +        fprintf(stdout, "Key %s (%" APR_SSIZE_T_FMT ") Value %s\n", key, len, val);
           i++;
       }
       if (i != apr_hash_count(h)) 
  
  
  

Mime
View raw message