summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-29 23:52:36 +0300
committerawy <awy@awy.one>2025-08-29 23:52:36 +0300
commit16dedf761958b7812f3c471e59e20e1714de1d0f (patch)
tree6d8734e779e723183e3884e206e7b986a064b7dd
parent82dbadd9a22a4f917f6110dd5f9dfcad7f1ec1f2 (diff)
-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";
}