summaryrefslogtreecommitdiffhomepage
path: root/examples/mapmap.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-11-02 12:24:32 +0100
committerTyge Løvset <[email protected]>2020-11-02 12:24:32 +0100
commit7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d (patch)
tree6debbbe87d6b671ec32b1c97bca1c48cf9f1e986 /examples/mapmap.c
parent0737c3feea3b8015d6db9440b8221374363272c9 (diff)
downloadSTC-modified-7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d.tar.gz
STC-modified-7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d.zip
Changed (half)-internal *_INIT to *__init macros. Minor reformatting.
Diffstat (limited to 'examples/mapmap.c')
-rw-r--r--examples/mapmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c
index 4e6c2f1a..0e4b6991 100644
--- a/examples/mapmap.c
+++ b/examples/mapmap.c
@@ -7,8 +7,8 @@ using_cmap_str();
using_cmap_strkey(cfg, cmap_str, cmap_str_del);
int main(void) {
- cmap_cfg config = cmap_INIT;
- cmap_str init = cmap_INIT;
+ cmap_cfg config = cmap__init;
+ cmap_str init = cmap__init;
cmap_str_put(&cmap_cfg_emplace(&config, "user", init).first->second, "name", "Joe");
cmap_str_put(&cmap_cfg_emplace(&config, "user", init).first->second, "groups", "proj1,proj3");
cmap_str_put(&cmap_cfg_emplace(&config, "group", init).first->second, "proj1", "Energy");