apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r585440 - /apr/apr-util/trunk/test/testssl.c
Date Wed, 17 Oct 2007 10:48:51 GMT
Author: wrowe
Date: Wed Oct 17 03:48:46 2007
New Revision: 585440

URL: http://svn.apache.org/viewvc?rev=585440&view=rev
Log:
General variables and includes cleanup.

Modified:
    apr/apr-util/trunk/test/testssl.c

Modified: apr/apr-util/trunk/test/testssl.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/test/testssl.c?rev=585440&r1=585439&r2=585440&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testssl.c (original)
+++ apr/apr-util/trunk/test/testssl.c Wed Oct 17 03:48:46 2007
@@ -29,8 +29,6 @@
 #include "apr_ssl.h"
 #include "apr_network_io.h"
 
-#include "apu_config.h"
-
 #if APR_HAVE_STDIO_H
 #include <stdio.h>
 #endif
@@ -99,8 +97,10 @@
 {
     int lrv;
     const apr_pollfd_t *descs = NULL;
+    apr_status_t rv;
+
     printf("::Reading from socket\n");
-    apr_status_t rv = apr_ssl_socket_set_poll_events(sock, APR_POLLIN);
+    rv = apr_ssl_socket_set_poll_events(sock, APR_POLLIN);
     if (rv != APR_SUCCESS) {
         printf("\tUnable to change socket poll events!\n");
         return rv;
@@ -139,8 +139,10 @@
 {
     int lrv;
     const apr_pollfd_t *descs = NULL;
+    apr_status_t rv;
+
     printf("::Writing to socket\n");
-    apr_status_t rv = apr_ssl_socket_set_poll_events(sock, APR_POLLOUT);
+    rv = apr_ssl_socket_set_poll_events(sock, APR_POLLOUT);
     if (rv != APR_SUCCESS) {
         printf("\tUnable to change socket poll events!\n");
         return rv;
@@ -193,7 +195,6 @@
     apr_ssl_factory_t *asf = NULL;
     apr_status_t rv;
     apr_pollset_t *pollset;
-    struct sslTestCase *mytest;
 
     (void) apr_initialize();
     apr_pool_create(&pool, NULL);



Mime
View raw message