Avoid deprecated ndn-cxx functions
Change-Id: I763368c2ea12902b4ea400f92c23b17ad5a5628e
diff --git a/tests/update/test-save-delete-prefix.cpp b/tests/update/test-save-delete-prefix.cpp
index 9843489..c4db1bc 100644
--- a/tests/update/test-save-delete-prefix.cpp
+++ b/tests/update/test-save-delete-prefix.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2021, The University of Memphis,
+ * Copyright (c) 2014-2022, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -144,11 +144,11 @@
ndn::security::InterestSigner signer(m_keyChain);
// type true for advertise, else withdraw
if (type == "advertise") {
- advertiseCommand.append(parameters.wireEncode());
+ advertiseCommand.append(ndn::tlv::GenericNameComponent, parameters.wireEncode());
return signer.makeCommandInterest(advertiseCommand, ndn::security::signingByIdentity(opIdentity));
}
else {
- withdrawCommand.append(parameters.wireEncode());
+ withdrawCommand.append(ndn::tlv::GenericNameComponent, parameters.wireEncode());
return signer.makeCommandInterest(withdrawCommand, ndn::security::signingByIdentity(opIdentity));
}
}