[sheepdog] [sheepdog/sheepdog] 4ef3f6: lib/util: remove try_to_free_routine()

Hitoshi Mitake mitake.hitoshi at gmail.com
Fri Jan 15 13:28:48 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/sheepdog/sheepdog
  Commit: 4ef3f60cc087c160816da35cf10a325c12b4ffad
      https://github.com/sheepdog/sheepdog/commit/4ef3f60cc087c160816da35cf10a325c12b4ffad
  Author: Takashi Menjo <takashi.menjo+github at gmail.com>
  Date:   2016-01-15 (Fri, 15 Jan 2016)

  Changed paths:
    M include/util.h
    M lib/util.c

  Log Message:
  -----------
  lib/util: remove try_to_free_routine()

Several memory-allocation functions in lib/util.c call
try_to_free_routine(). The routine is a function pointer. It is initialized
as do_nothing and can be set by set_try_to_free_routine(). However, no one
calls set_try_to_free_routine() in fact. So these code really do nothing.

This removes try_to_free_routine() and related lines.

This closes sheepdog/sheepdog#210.

Signed-off-by: Takashi Menjo <takashi.menjo+github at gmail.com>


  Commit: c3bb37e4f3a9e21c481d7ab35dfd68c0bc4c707f
      https://github.com/sheepdog/sheepdog/commit/c3bb37e4f3a9e21c481d7ab35dfd68c0bc4c707f
  Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
  Date:   2016-01-15 (Fri, 15 Jan 2016)

  Changed paths:
    M include/util.h
    M lib/util.c

  Log Message:
  -----------
  Merge pull request #211 from tmenjo/remove-try-to-free-routine

lib/util: remove try_to_free_routine()


Compare: https://github.com/sheepdog/sheepdog/compare/0ecdfc5e819e...c3bb37e4f3a9


More information about the sheepdog mailing list