serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astie...@apache.org
Subject svn commit: r1719435 - in /serf/trunk: serf_bucket_types.h test/test_buckets.c
Date Fri, 11 Dec 2015 14:44:59 GMT
Author: astieger
Date: Fri Dec 11 14:44:59 2015
New Revision: 1719435

URL: http://svn.apache.org/viewvc?rev=1719435&view=rev
Log:
SERF_BUCKET_SIMPLE_STRING{,_LEN} macros could not be used as function
arguments.

* serf_bucket_types.h
  (SERF_BUCKET_SIMPLE_STRING,SERF_BUCKET_SIMPLE_STRING_LEN):
   remove trailing semicolon
* test/test_buckets.c
  (test_response_bucket_read): add trailing semicolon in call.

Found by: brane

Modified:
    serf/trunk/serf_bucket_types.h
    serf/trunk/test/test_buckets.c

Modified: serf/trunk/serf_bucket_types.h
URL: http://svn.apache.org/viewvc/serf/trunk/serf_bucket_types.h?rev=1719435&r1=1719434&r2=1719435&view=diff
==============================================================================
--- serf/trunk/serf_bucket_types.h (original)
+++ serf/trunk/serf_bucket_types.h Fri Dec 11 14:44:59 2015
@@ -392,10 +392,10 @@ serf_bucket_t *serf_bucket_simple_own_cr
     serf_bucket_alloc_t *allocator);
 
 #define SERF_BUCKET_SIMPLE_STRING(s,a) \
-    serf_bucket_simple_create(s, strlen(s), NULL, NULL, a);
+    serf_bucket_simple_create(s, strlen(s), NULL, NULL, a)
 
 #define SERF_BUCKET_SIMPLE_STRING_LEN(s,l,a) \
-    serf_bucket_simple_create(s, l, NULL, NULL, a);
+    serf_bucket_simple_create(s, l, NULL, NULL, a)
 
 /* ==================================================================== */
 

Modified: serf/trunk/test/test_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_buckets.c?rev=1719435&r1=1719434&r2=1719435&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Fri Dec 11 14:44:59 2015
@@ -315,7 +315,7 @@ static void test_response_bucket_read(Cu
             "abc1234" /* NO CRLF... just 7 bytes!*/
             "HTTP/1.1 304 Unmodified" CRLF
             CRLF,
-            alloc)
+            alloc);
 
     bkt = serf_bucket_response_create(
               serf_bucket_barrier_create(tmp, alloc),



Mime
View raw message