apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1767780 - /apr/apr-util/branches/1.6.x/redis/apr_redis.c
Date Wed, 02 Nov 2016 20:48:56 GMT
Author: jim
Date: Wed Nov  2 20:48:56 2016
New Revision: 1767780

URL: http://svn.apache.org/viewvc?rev=1767780&view=rev
Log:
better name

Modified:
    apr/apr-util/branches/1.6.x/redis/apr_redis.c

Modified: apr/apr-util/branches/1.6.x/redis/apr_redis.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/redis/apr_redis.c?rev=1767780&r1=1767779&r2=1767780&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/redis/apr_redis.c (original)
+++ apr/apr-util/branches/1.6.x/redis/apr_redis.c Wed Nov  2 20:48:56 2016
@@ -859,9 +859,10 @@ APU_DECLARE(apr_status_t) apr_redis_sete
     rs_release_conn(rs, conn);
     return rv;
 }
-static apr_status_t grab_bulk (apr_redis_server_t *rs, apr_redis_t *rc,
-                               apr_redis_conn_t *conn, apr_pool_t *p,
-                               char **baton, apr_size_t *new_length)
+
+static apr_status_t grab_bulk_resp(apr_redis_server_t *rs, apr_redis_t *rc,
+                                   apr_redis_conn_t *conn, apr_pool_t *p,
+                                   char **baton, apr_size_t *new_length)
 {
     char *length;
     char *last;
@@ -995,7 +996,7 @@ APU_DECLARE(apr_status_t) apr_redis_getp
         rv = APR_NOTFOUND;
     }
     else if (strncmp(RS_TYPE_STRING, conn->buffer, RS_TYPE_STRING_LEN) == 0) {
-        rv = grab_bulk (rs, rc, conn, p, baton, new_length);
+        rv = grab_bulk_resp(rs, rc, conn, p, baton, new_length);
     }
     else {
         rs_bad_conn(rs, conn);
@@ -1174,7 +1175,7 @@ apr_redis_info(apr_redis_server_t *rs, a
 
     if (strncmp(RS_TYPE_STRING, conn->buffer, RS_TYPE_STRING_LEN) == 0) {
         apr_size_t nl;
-        rv = grab_bulk (rs, NULL, conn, p, baton, &nl);
+        rv = grab_bulk_resp(rs, NULL, conn, p, baton, &nl);
     } else {
         rs_bad_conn(rs, conn);
         return (APR_EGENERAL);



Mime
View raw message