summaryrefslogtreecommitdiff
path: root/src/basic/ordered-set.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-01 13:22:14 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-01 13:45:51 +0200
commit8a35af80fc7ae6d32143bfb225828e1fb1f62914 (patch)
treed8ba49ee49d71b3ae8be7fb534eadfd044f791d8 /src/basic/ordered-set.h
parente4126adf453d170afae319f7d3d7a87b4d2f5159 (diff)
downloadsystemd-8a35af80fc7ae6d32143bfb225828e1fb1f62914.tar.gz
basic/hashmap,set: move pointer symbol adjactent to the returned value
I think this is nicer in general, and here in particular we have a lot of code like: static inline IteratedCache* hashmap_iterated_cache_new(Hashmap *h) { return (IteratedCache*) _hashmap_iterated_cache_new(HASHMAP_BASE(h)); } and it's visually appealing to use the same whitespace in the function signature and the cast in the body of the function.
Diffstat (limited to 'src/basic/ordered-set.h')
-rw-r--r--src/basic/ordered-set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/ordered-set.h b/src/basic/ordered-set.h
index 2c241a808b..26481b72d4 100644
--- a/src/basic/ordered-set.h
+++ b/src/basic/ordered-set.h
@@ -54,7 +54,7 @@ static inline void* ordered_set_steal_first(OrderedSet *s) {
return ordered_hashmap_steal_first((OrderedHashmap*) s);
}
-static inline char **ordered_set_get_strv(OrderedSet *s) {
+static inline char** ordered_set_get_strv(OrderedSet *s) {
return _hashmap_get_strv(HASHMAP_BASE((OrderedHashmap*) s));
}