diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-01 13:22:14 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-01 13:45:51 +0200 |
commit | 8a35af80fc7ae6d32143bfb225828e1fb1f62914 (patch) | |
tree | d8ba49ee49d71b3ae8be7fb534eadfd044f791d8 /src/basic/ordered-set.h | |
parent | basic/hashmap,set: inline trivial set_iterate() wrapper (diff) | |
download | systemd-8a35af80fc7ae6d32143bfb225828e1fb1f62914.tar.xz systemd-8a35af80fc7ae6d32143bfb225828e1fb1f62914.zip |
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.h | 2 |
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)); } |