serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1709210 - /serf/trunk/test/test_buckets.c
Date Sat, 17 Oct 2015 19:19:58 GMT
Author: rhuijben
Date: Sat Oct 17 19:19:58 2015
New Revision: 1709210

URL: http://svn.apache.org/viewvc?rev=1709210&view=rev
Log:
Fix a few warnings and a type mismatch in the bucket tests

* serf-dev/dev/test/test_buckets.c
  (test_response_bucket_peek_at_headers): Remove shadowing variable.
  (read_bucket_and_check_pattern): Initialize expected.
  (test_http2_unpad_buckets): Remove unused variable and fix stream type.

Modified:
    serf/trunk/test/test_buckets.c

Modified: serf/trunk/test/test_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_buckets.c?rev=1709210&r1=1709209&r2=1709210&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Sat Oct 17 19:19:58 2015
@@ -945,7 +945,6 @@ static void test_response_bucket_peek_at
     while (1) {
         const char *data;
         apr_size_t len;
-        apr_status_t status;
 
         status = serf_bucket_read(resp_bkt1, SERF_READ_ALL_AVAIL, &data, &len);
         CuAssert(tc, "Unexpected error when waiting for response headers",
@@ -1395,7 +1394,7 @@ static void read_bucket_and_check_patter
                                           apr_size_t expected_len)
 {
     apr_status_t status;
-    const char *expected;
+    const char *expected = NULL;
     const apr_size_t pattern_len = strlen(pattern);
 
     apr_size_t exp_rem = 0;
@@ -1871,7 +1870,6 @@ static void test_http2_unpad_buckets(CuT
   serf_bucket_t *unframe;
   serf_bucket_t *unpad;
   char result1[16];
-  char result2[5];
   apr_status_t status;
   apr_size_t read_len;
 
@@ -1884,7 +1882,7 @@ static void test_http2_unpad_buckets(CuT
                                              alloc);
 
   {
-    apr_size_t streamid;
+    apr_int32_t streamid;
     unsigned char frame_type, flags;
 
     status = serf_http2_unframe_bucket_read_info(unframe, NULL, &streamid,



Mime
View raw message