platform_bootable_recovery/applypatch
Tao Bao 7ebef8fd40 applypatch: Fix comparison of integers of different signs.
bootable/recovery/applypatch/imgpatch.cpp:57:3: error: comparison of integers of different signs: 'unsigned int' and 'int' [-Werror,-Wsign-compare]
  CHECK_GT(expected_target_length, 0);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

bootable/recovery/applypatch/freecache.cpp:145:50: error: comparison of integers of different signs: 'long' and '__fsblkcnt64_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
  if (sf.f_bsize == 0 || free_space / sf.f_bsize != sf.f_bavail) {
                         ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~
bootable/recovery/applypatch/freecache.cpp:190:16: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
  if (free_now >= bytes_needed) {
      ~~~~~~~~ ^  ~~~~~~~~~~~~
bootable/recovery/applypatch/freecache.cpp:233:18: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
    if (free_now >= bytes_needed) {
        ~~~~~~~~ ^  ~~~~~~~~~~~~

Test: `mmma -j bootable/recovery/applypatch` with -Wsign-compare
Test: Run recovery_unit_test on marlin.
Change-Id: I4aa1fd0f9b7205b9e4e50874fc4bccb62951e7fe
2018-12-17 10:07:27 -08:00
..
include/applypatch applypatch: {Load,Save}FileContents return bool values. 2018-08-31 14:31:19 -07:00
Android.bp Remove otafault 2018-08-27 17:16:19 -07:00
applypatch.cpp applypatch: {Load,Save}FileContents return bool values. 2018-08-31 14:31:19 -07:00
applypatch_main.cpp applypatch: Refactor applypatch(). 2018-08-31 09:21:15 -07:00
applypatch_modes.cpp applypatch: Refactor applypatch(). 2018-08-31 09:21:15 -07:00
applypatch_modes.h applypatch: Change applypatch command-line arguments. 2018-07-20 11:26:17 -07:00
bspatch.cpp applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch. 2018-04-20 09:27:50 -07:00
freecache.cpp applypatch: Fix comparison of integers of different signs. 2018-12-17 10:07:27 -08:00
imgdiff.cpp Convert deflate image chunks to raw if the raw data is smaller 2018-05-24 10:49:54 -07:00
imgdiff_main.cpp Add tests for imgdiff. 2016-12-19 16:53:03 -08:00
imgpatch.cpp applypatch: Fix comparison of integers of different signs. 2018-12-17 10:07:27 -08:00
NOTICE Add NOTICE file 2012-04-06 13:51:00 -07:00