gluon-respondd: fix c indentation

This commit is contained in:
Jan-Niklas Burfeind 2023-01-03 16:09:33 +01:00
parent e797ad4c2f
commit 051c74b987
2 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@ static struct json_object * get_wifi_neighbours(const char *ifname) {
char mac[18]; char mac[18];
snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x", snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x",
entry->mac[0], entry->mac[1], entry->mac[2], entry->mac[0], entry->mac[1], entry->mac[2],
entry->mac[3], entry->mac[4], entry->mac[5]); entry->mac[3], entry->mac[4], entry->mac[5]);
json_object_object_add(neighbours, mac, obj); json_object_object_add(neighbours, mac, obj);
} }

View File

@ -134,7 +134,7 @@ static struct json_object * get_stat(void) {
if (!strcmp(label, "cpu")) { if (!strcmp(label, "cpu")) {
int64_t user, nice, system, idle, iowait, irq, softirq; int64_t user, nice, system, idle, iowait, irq, softirq;
if (sscanf(line, "%*s %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64, if (sscanf(line, "%*s %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64" %"SCNd64,
&user, &nice, &system, &idle, &iowait, &irq, &softirq) != 7) &user, &nice, &system, &idle, &iowait, &irq, &softirq) != 7)
goto invalid_stat_format; goto invalid_stat_format;
struct json_object *cpu = json_object_new_object(); struct json_object *cpu = json_object_new_object();
@ -275,7 +275,7 @@ static void count_stations(size_t *wifi24, size_t *wifi5, size_t *owe24, size_t
count_iface_stations(wifi24, wifi5, ifname); count_iface_stations(wifi24, wifi5, ifname);
} }
end: end:
uci_free_context(ctx); uci_free_context(ctx);
} }