aboutsummaryrefslogtreecommitdiff
path: root/libi3
diff options
context:
space:
mode:
authorxzfc <xzfc@users.noreply.github.com>2020-02-19 10:31:09 +0000
committerGitHub <noreply@github.com>2020-02-19 11:31:09 +0100
commit1f0c628cde40cf87371481041b7197344e0417c6 (patch)
treed617bda6a9975d2fbfeab6cb3ad4e71a7ea11e93 /libi3
parente3f120c0b688a87eb493691f915407a4e93f68b5 (diff)
downloadi3-1f0c628cde40cf87371481041b7197344e0417c6.tar.gz
i3-1f0c628cde40cf87371481041b7197344e0417c6.zip
clang-format: bring back ForeachMacros (#3948)
* clang-format: bring back ForeachMacros ForeachMacros was disabled in 4211274fcd028a8e33a084e5695290ae0e9f3020 due to the breakage of include/queue.h. The currently used version, clang-format-6.0 doesn't break it. * Add curly braces Co-authored-by: Orestis Floros <orestisflo@gmail.com>
Diffstat (limited to 'libi3')
-rw-r--r--libi3/get_colorpixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libi3/get_colorpixel.c b/libi3/get_colorpixel.c
index 49a9e3b4..45931051 100644
--- a/libi3/get_colorpixel.c
+++ b/libi3/get_colorpixel.c
@@ -48,7 +48,7 @@ uint32_t get_colorpixel(const char *hex) {
/* Lookup this colorpixel in the cache */
struct Colorpixel *colorpixel;
- SLIST_FOREACH(colorpixel, &(colorpixels), colorpixels) {
+ SLIST_FOREACH (colorpixel, &(colorpixels), colorpixels) {
if (strcmp(colorpixel->hex, hex) == 0)
return colorpixel->pixel;
}