serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1709677 - in /serf/trunk: buckets/buckets.c serf.h
Date Tue, 20 Oct 2015 20:33:24 GMT
Author: rhuijben
Date: Tue Oct 20 20:33:23 2015
New Revision: 1709677

URL: http://svn.apache.org/viewvc?rev=1709677&view=rev
Log:
Minor constness tweak in the new in trunk serf_get_type function.

We pass the argument to read_bucket() as non const, so we can't
really promise that we use it as const ourselves.

* serf-dev/dev/buckets/buckets.c
  (serf_get_type): Remove const from argument.

* serf-dev/dev/serf.h
  (serf_get_type): Remove const from argument.

Modified:
    serf/trunk/buckets/buckets.c
    serf/trunk/serf.h

Modified: serf/trunk/buckets/buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/buckets.c?rev=1709677&r1=1709676&r2=1709677&view=diff
==============================================================================
--- serf/trunk/buckets/buckets.c (original)
+++ serf/trunk/buckets/buckets.c Tue Oct 20 20:33:23 2015
@@ -200,7 +200,7 @@ static const serf_bucket_type_t fallback
   serf_default_ignore_config,
 };
 
-const serf_bucket_type_t *serf_get_type(const serf_bucket_t *bucket,
+const serf_bucket_type_t *serf_get_type(serf_bucket_t *bucket,
                                         int min_version)
 {
     const serf_bucket_t *r;

Modified: serf/trunk/serf.h
URL: http://svn.apache.org/viewvc/serf/trunk/serf.h?rev=1709677&r1=1709676&r2=1709677&view=diff
==============================================================================
--- serf/trunk/serf.h (original)
+++ serf/trunk/serf.h Tue Oct 20 20:33:23 2015
@@ -1018,7 +1018,7 @@ serf_bucket_t * serf_buckets_are_v2(serf
  *
  * @since New in 1.4.
  */
-const serf_bucket_type_t *serf_get_type(const serf_bucket_t *bucket,
+const serf_bucket_type_t *serf_get_type(serf_bucket_t *bucket,
                                         int min_version);
 
 /* Internal macros for tracking bucket use. */



Mime
View raw message