apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apr/test mod_test.c testdso.c
Date Sun, 03 Dec 2000 06:47:30 GMT
rbb         00/12/02 22:47:29

  Modified:    test     mod_test.c testdso.c
  Log:
  Get testdso working on Linux again.  This should work on all platforms.
  
  Revision  Changes    Path
  1.4       +5 -2      apr/test/mod_test.c
  
  Index: mod_test.c
  ===================================================================
  RCS file: /home/cvs/apr/test/mod_test.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- mod_test.c	2000/11/15 21:46:38	1.3
  +++ mod_test.c	2000/12/03 06:47:28	1.4
  @@ -2,12 +2,15 @@
   
   int goodbyes = 0;
   
  -static void print_hello(void)
  +void print_hello(void);
  +int print_goodbye(int reps);
  +
  +void print_hello(void)
   {
       fprintf(stdout,"Hello - I'm a DSO!\n");
   }
   
  -static int print_goodbye(int reps)
  +int print_goodbye(int reps)
   {
       int i = 0;
       for (i = 0;i < reps; i++) {
  
  
  
  1.10      +4 -2      apr/test/testdso.c
  
  Index: testdso.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testdso.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- testdso.c	2000/11/29 00:22:04	1.9
  +++ testdso.c	2000/12/03 06:47:28	1.10
  @@ -45,8 +45,10 @@
   
       fprintf(stdout,"Trying to get the DSO's attention..........");
       fflush(stdout);
  -    if (apr_dso_sym(&func1, h, "print_hello") != APR_SUCCESS) { 
  -        fprintf(stderr, "Failed!\n");
  +    if ((status = apr_dso_sym(&func1, h, "print_hello")) != APR_SUCCESS) { 
  +        char my_error[256];
  +        apr_dso_error(h, my_error, sizeof(my_error));
  +        fprintf(stderr, "%s\n", my_error);
           exit (-1);
       }        
       fprintf(stdout,"OK\n");
  
  
  

Mime
View raw message