11/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*-*/
22/*
3- * Copyright (c) 2014-2023 , Regents of the University of California.
3+ * Copyright (c) 2014-2025 , Regents of the University of California.
44 *
55 * This file is part of NDN repo-ng (Next generation of NDN repository).
66 * See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -53,11 +53,11 @@ WriteHandle::deleteProcess(ProcessId processId)
5353}
5454
5555void
56- WriteHandle::handleInsertCommand (const Name& prefix ,const Interest& interest,
57- const ndn::mgmt::ControlParameters & params,
56+ WriteHandle::handleInsertCommand (const Name&,const Interest& interest,
57+ const ndn::mgmt::ControlParametersBase & params,
5858const ndn::mgmt::CommandContinuation& done)
5959{
60- auto & repoParam =dynamic_cast <RepoCommandParameter&>(const_cast <ndn::mgmt::ControlParameters&>( params) );
60+ const auto & repoParam =dynamic_cast <const RepoCommandParameter&>(params);
6161
6262if (repoParam.hasStartBlockId () || repoParam.hasEndBlockId ()) {
6363processSegmentedInsertCommand (interest, repoParam, done);
@@ -79,7 +79,7 @@ WriteHandle::onData(const Interest& interest, const Data& data, ProcessId proces
7979}
8080
8181void
82- WriteHandle::onDataValidated (const Interest& interest ,const Data& data, ProcessId processId)
82+ WriteHandle::onDataValidated (const Interest&,const Data& data, ProcessId processId)
8383{
8484if (m_processes.count (processId) ==0 ) {
8585return ;
@@ -97,14 +97,14 @@ WriteHandle::onDataValidated(const Interest& interest, const Data& data, Process
9797}
9898
9999void
100- WriteHandle::onTimeout (const Interest& interest , ProcessId processId)
100+ WriteHandle::onTimeout (const Interest&, ProcessId processId)
101101{
102102NDN_LOG_DEBUG (" Timeout" << std::endl);
103103 m_processes.erase (processId);
104104}
105105
106106void
107- WriteHandle::processSingleInsertCommand (const Interest& interest, RepoCommandParameter& parameter,
107+ WriteHandle::processSingleInsertCommand (const Interest&, const RepoCommandParameter& parameter,
108108const ndn::mgmt::CommandContinuation& done)
109109{
110110 ProcessId processId =ndn::random::generateWord64 ();
@@ -220,7 +220,7 @@ WriteHandle::onSegmentTimeout(ndn::SegmentFetcher& fetcher, ProcessId processId)
220220}
221221
222222void
223- WriteHandle::processSegmentedInsertCommand (const Interest& interest, RepoCommandParameter& parameter,
223+ WriteHandle::processSegmentedInsertCommand (const Interest&, const RepoCommandParameter& parameter,
224224const ndn::mgmt::CommandContinuation& done)
225225{
226226if (parameter.hasEndBlockId ()) {
@@ -268,8 +268,8 @@ WriteHandle::processSegmentedInsertCommand(const Interest& interest, RepoCommand
268268}
269269
270270void
271- WriteHandle::handleCheckCommand (const Name& prefix ,const Interest& interest ,
272- const ndn::mgmt::ControlParameters & params,
271+ WriteHandle::handleCheckCommand (const Name&,const Interest&,
272+ const ndn::mgmt::ControlParametersBase & params,
273273const ndn::mgmt::CommandContinuation& done)
274274{
275275const auto & repoParameter =dynamic_cast <const RepoCommandParameter&>(params);