diff --git a/src/libstore-c/nix_api_store.cc b/src/libstore-c/nix_api_store.cc index 1026c2227..73c820d59 100644 --- a/src/libstore-c/nix_api_store.cc +++ b/src/libstore-c/nix_api_store.cc @@ -93,7 +93,7 @@ nix_store_get_version(nix_c_context * context, Store * store, nix_get_string_cal NIXC_CATCH_ERRS } -bool nix_store_is_valid_path(nix_c_context * context, Store * store, StorePath * path) +bool nix_store_is_valid_path(nix_c_context * context, Store * store, const StorePath * path) { if (context) context->last_err_code = NIX_OK; diff --git a/src/libstore-c/nix_api_store.h b/src/libstore-c/nix_api_store.h index ad3d7b22a..89cfc1a3c 100644 --- a/src/libstore-c/nix_api_store.h +++ b/src/libstore-c/nix_api_store.h @@ -148,7 +148,7 @@ void nix_store_path_free(StorePath * p); * @param[in] path Path to check * @return true or false, error info in context */ -bool nix_store_is_valid_path(nix_c_context * context, Store * store, StorePath * path); +bool nix_store_is_valid_path(nix_c_context * context, Store * store, const StorePath * path); /** * @brief Get the physical location of a store path