Please change this to:
```C
root = api_add_freq(root, "Frequency", &d, true);
```