gluon-mesh-vpn-fastd: fix c indentation

This commit is contained in:
Jan-Niklas Burfeind 2023-01-03 16:01:34 +01:00
parent 44c12e87ec
commit 27d52b5ee5

View File

@ -219,7 +219,7 @@ static bool get_peer_connection(struct json_object **ret, struct json_object *co
struct json_object *peer, *connection, *established; struct json_object *peer, *connection, *established;
if (!json_object_object_get_ex(peers, key, &peer) || if (!json_object_object_get_ex(peers, key, &peer) ||
!json_object_object_get_ex(peer, "connection", &connection)) !json_object_object_get_ex(peer, "connection", &connection))
return false; return false;
if (json_object_object_get_ex(connection, "established", &established)) { if (json_object_object_get_ex(connection, "established", &established)) {
@ -242,7 +242,7 @@ static struct json_object * get_peer_group(struct json_object *config, struct js
struct json_object *config_peers; struct json_object *config_peers;
if (json_object_object_get_ex(config, "peers", &config_peers) && if (json_object_object_get_ex(config, "peers", &config_peers) &&
json_object_is_type(config_peers, json_type_object)) { json_object_is_type(config_peers, json_type_object)) {
struct json_object *ret_peers = json_object_new_object(); struct json_object *ret_peers = json_object_new_object();
json_object_object_foreach(config_peers, peername, peerconfig) { json_object_object_foreach(config_peers, peername, peerconfig) {
@ -320,7 +320,7 @@ static struct json_object * get_mesh_vpn(void) {
ret = get_peer_group(mesh_vpn_fastd, peers); ret = get_peer_group(mesh_vpn_fastd, peers);
end: end:
json_object_put(site); json_object_put(site);
json_object_put(status); json_object_put(status);