netconf: replace macro with a function

The number of casts in macro was excessive.
1 file changed