summaryrefslogtreecommitdiffhomepage
path: root/examples/new_map.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-18 00:44:51 +0200
committerTyge Løvset <[email protected]>2022-04-18 00:44:51 +0200
commit00804d9ff488f63468a0bb528c7b807aea7c3ea3 (patch)
tree51b47787adc853bd1a10ec820a6ef5c184fa2498 /examples/new_map.c
parent4436a1c0ac37dc2e73a2134d5ad85c010340b35d (diff)
downloadSTC-modified-00804d9ff488f63468a0bb528c7b807aea7c3ea3.tar.gz
STC-modified-00804d9ff488f63468a0bb528c7b807aea7c3ea3.zip
Converted all example to use cstr_str(&s) instead of s.str to allow SSO string. Fixed misc warnings.
Diffstat (limited to 'examples/new_map.c')
-rw-r--r--examples/new_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/new_map.c b/examples/new_map.c
index 97fce008..ec37a846 100644
--- a/examples/new_map.c
+++ b/examples/new_map.c
@@ -66,6 +66,6 @@ int main()
"So long, friend",
});
c_foreach (i, cset_str, sset)
- printf(" %s\n", i.ref->str);
+ printf(" %s\n", cstr_str(i.ref));
}
}