MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_replace_retaddr

Function ng_replace_retaddr

lib/ff_ng_base.c:3875–3887  ·  view source on GitHub ↗

* Set the address, if none given, give the node here. */

Source from the content-addressed store, hash-verified

3873 * Set the address, if none given, give the node here.
3874 */
3875void
3876ng_replace_retaddr(node_p here, item_p item, ng_ID_t retaddr)
3877{
3878 if (retaddr) {
3879 NGI_RETADDR(item) = retaddr;
3880 } else {
3881 /*
3882 * The old return address should be ok.
3883 * If there isn't one, use the address here.
3884 */
3885 NGI_RETADDR(item) = ng_node2ID(here);
3886 }
3887}

Callers

nothing calls this directly

Calls 1

ng_node2IDFunction · 0.70

Tested by

no test coverage detected