summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stweath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stweath.c b/src/stweath.c
index 62bde59..0b0bee1 100644
--- a/src/stweath.c
+++ b/src/stweath.c
@@ -30,8 +30,8 @@ typedef struct {
const char *icon;
} WeatherIcon;
-const char
-*geticon(int code)
+const char*
+geticon(int code)
{
static const WeatherIcon icons[] = {
{113, ""},
@@ -49,7 +49,8 @@ const char
};
size_t n = sizeof(icons) / sizeof(icons[0]);
for (size_t i = 0; i < n; i++) {
- if (icons[i].code == code) { return icons[i].icon; }
+ if (icons[i].code == code)
+ return icons[i].icon;
}
return "unknown";
}