Skip to content
  • Vladimír Čunát's avatar
    9b469602
    lib/cache kr_cdb_api::space_usage(): also use kr_cdb_pt · 9b469602
    Vladimír Čunát authored and Petr Špaček's avatar Petr Špaček committed
    - The malloc-free pair could be avoided without difficulty,
      but it seemed like premature optimization.
    - The libknot functions make error handling a bit difficult
      (zero is theoretically valid and doesn't show error type),
      but writing this properly without libknot would need 10-20
      additional lines of code and the risk of encountering errors
      in this function seems very low anyway.
    9b469602
    lib/cache kr_cdb_api::space_usage(): also use kr_cdb_pt
    Vladimír Čunát authored and Petr Špaček's avatar Petr Špaček committed
    - The malloc-free pair could be avoided without difficulty,
      but it seemed like premature optimization.
    - The libknot functions make error handling a bit difficult
      (zero is theoretically valid and doesn't show error type),
      but writing this properly without libknot would need 10-20
      additional lines of code and the risk of encountering errors
      in this function seems very low anyway.
Loading