]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: comparison between signed and unsigned integer expressions 21105/head
authorashitakasam <694240887@qq.com>
Thu, 29 Mar 2018 00:30:13 +0000 (08:30 +0800)
committerashitakasam <694240887@qq.com>
Thu, 29 Mar 2018 00:39:07 +0000 (08:39 +0800)
Fixes: Change the data type of 'c' from int to size_t in
src/rgw/rgw_civetweb.cc RGWCivetWeb::read_data

Signed-off-by: ashitakasam <694240887@qq.com>
src/rgw/rgw_civetweb.cc

index 2140e363285cc9ef352b6b8c4b87a330042daf89..c28fac47652ef2d03ddda920937523e91d1a53c2 100644 (file)
@@ -51,7 +51,8 @@ RGWCivetWeb::RGWCivetWeb(mg_connection* const conn)
 
 size_t RGWCivetWeb::read_data(char *buf, size_t len)
 {
-  int c, ret;
+  size_t c;
+  int ret;
   if (got_eof_on_read) {
     return 0;
   }