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 test_apr.h testmd5.c testproc.c
Date Sun, 13 May 2001 15:34:18 GMT
trawick     01/05/13 08:34:18

  Modified:    test     test_apr.h testmd5.c testproc.c
  Log:
  fix some bad parms to printf/fprintf
  
  Revision  Changes    Path
  1.3       +2 -2      apr/test/test_apr.h
  
  Index: test_apr.h
  ===================================================================
  RCS file: /home/cvs/apr/test/test_apr.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- test_apr.h	2001/05/13 14:40:57	1.2
  +++ test_apr.h	2001/05/13 15:34:17	1.3
  @@ -63,7 +63,7 @@
   	{ apr_status_t rv; \
   	    if ((rv = func) == value){ \
   	        printf("%s\n", bad); \
  -            printf("Error was %ld : %s\n", rv, strerror(rv)); \
  +            printf("Error was %d : %s\n", rv, strerror(rv)); \
   	        exit(-1); \
   	    } \
   	    printf("%s\n", good); \
  @@ -74,7 +74,7 @@
   	{ apr_status_t rv; \
   	    if ((rv = func) != value){ \
   	        printf("%s\n", bad); \
  -            printf("Error was %ld : %s\n", rv, strerror(rv)); \
  +            printf("Error was %d : %s\n", rv, strerror(rv)); \
   	        exit(-1); \
   	    } \
   	    printf("%s\n", good); \
  
  
  
  1.9       +1 -1      apr/test/testmd5.c
  
  Index: testmd5.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmd5.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- testmd5.c	2001/05/13 10:53:01	1.8
  +++ testmd5.c	2001/05/13 15:34:17	1.9
  @@ -106,7 +106,7 @@
       if (xlate) {
   #if APR_HAS_XLATE
           if ((rv = apr_md5_set_xlate(&context, xlate)) != APR_SUCCESS){
  -            fprintf("Couldn't set the MD5 translation handle!\n");
  +            fprintf(stderr, "Couldn't set the MD5 translation handle!\n");
               exit(-1);
           }
   #else
  
  
  
  1.28      +1 -1      apr/test/testproc.c
  
  Index: testproc.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testproc.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- testproc.c	2001/05/13 10:42:08	1.27
  +++ testproc.c	2001/05/13 15:34:17	1.28
  @@ -140,7 +140,7 @@
           if (!strcmp(buf, teststr))
               printf("OK\n");
           else {
  -            printf( "Uh-Oh\n", buf);
  +            printf( "Uh-Oh\n");
               printf("  (I actually got %s_\n", buf);
           }
       }
  
  
  

Mime
View raw message