Fixup for style
authorBrian Aker <brian@tangent.org>
Tue, 12 Jun 2012 17:48:05 +0000 (18:48 +0100)
committerBrian Aker <brian@tangent.org>
Tue, 12 Jun 2012 17:48:05 +0000 (18:48 +0100)
libmemcached/io.cc

index 85474d3eae215b8b7e33564fc605cf2b6cb7c2b2..bafa28c818a45c16f7b8da226c638e08da793c07 100644 (file)
@@ -477,9 +477,7 @@ memcached_return_t memcached_io_read(memcached_server_write_instance_st ptr,
 
     if (length > 1)
     {
-      size_t difference;
-
-      difference= (length > ptr->read_buffer_length) ? ptr->read_buffer_length : length;
+      size_t difference= (length > ptr->read_buffer_length) ? ptr->read_buffer_length : length;
 
       memcpy(buffer_ptr, ptr->read_ptr, difference);
       length -= difference;