[PATCH v5 0/2] cleanup duplicate name_compare() functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Version 5 of the patch series to cleanup the duplicate name_compare()
functions.

  - name-hash.c had a call to cache_name_compare() but it required that
    the lengths were equal.  Since cache_name_compare() is equivalent to
    memcmp() when the lengths are equal, replace it with memcmp().
    This avoids renaming cache_name_compare() to name_compare() in a
    later patch.

  - Cleanup of log message by Junio C Humano.


Jeremiah Mahler (2):
  name-hash.c: replace cache_name_compare() with memcmp()
  cleanup duplicate name_compare() functions

 cache.h        |  2 +-
 dir.c          |  3 +--
 name-hash.c    |  2 +-
 read-cache.c   | 23 +++++++++++++----------
 tree-walk.c    | 10 ----------
 unpack-trees.c | 11 -----------
 6 files changed, 16 insertions(+), 35 deletions(-)

-- 
2.0.0.694.g5736dad

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]