diff --git a/package/gluon-respondd/src/respondd-neighbours.c b/package/gluon-respondd/src/respondd-neighbours.c index 6420d219..bc60b1f4 100644 --- a/package/gluon-respondd/src/respondd-neighbours.c +++ b/package/gluon-respondd/src/respondd-neighbours.c @@ -56,8 +56,8 @@ static struct json_object * get_wifi_neighbours(const char *ifname) { char mac[18]; snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x", - entry->mac[0], entry->mac[1], entry->mac[2], - entry->mac[3], entry->mac[4], entry->mac[5]); + entry->mac[0], entry->mac[1], entry->mac[2], + entry->mac[3], entry->mac[4], entry->mac[5]); json_object_object_add(neighbours, mac, obj); } diff --git a/package/gluon-respondd/src/respondd-statistics.c b/package/gluon-respondd/src/respondd-statistics.c index 5f9e15bf..af6bc2dc 100644 --- a/package/gluon-respondd/src/respondd-statistics.c +++ b/package/gluon-respondd/src/respondd-statistics.c @@ -134,7 +134,7 @@ static struct json_object * get_stat(void) { if (!strcmp(label, "cpu")) { int64_t user, nice, system, idle, iowait, irq, softirq; 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; 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); } - end: +end: uci_free_context(ctx); }