Skip to content

Commit

Permalink
relay/api: fix style (issue #2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Apr 7, 2024
1 parent 786f889 commit 3f993f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/relay/api/relay-api-protocol.c
Expand Up @@ -241,13 +241,13 @@ RELAY_API_PROTOCOL_CALLBACK(handshake)

hash_algo_found = -1;

json_body = cJSON_Parse(client->http_req->body);
json_body = cJSON_Parse (client->http_req->body);
if (json_body)
{
json_algos = cJSON_GetObjectItem (json_body, "password_hash_algo");
if (json_algos)
{
cJSON_ArrayForEach(json_algo, json_algos)
cJSON_ArrayForEach (json_algo, json_algos)
{
ptr_algo = (cJSON_IsString (json_algo)) ?
cJSON_GetStringValue (json_algo) : NULL;
Expand Down Expand Up @@ -506,7 +506,7 @@ RELAY_API_PROTOCOL_CALLBACK(input)
struct t_hashtable *options;
char str_delay[32];

json_body = cJSON_Parse(client->http_req->body);
json_body = cJSON_Parse (client->http_req->body);
if (!json_body)
return WEECHAT_RC_ERROR;

Expand Down Expand Up @@ -628,7 +628,7 @@ RELAY_API_PROTOCOL_CALLBACK(ping)
const char *ptr_data;

ptr_data = NULL;
json_body = cJSON_Parse(client->http_req->body);
json_body = cJSON_Parse (client->http_req->body);
if (json_body)
{
json_data = cJSON_GetObjectItem (json_body, "data");
Expand Down Expand Up @@ -683,7 +683,7 @@ RELAY_API_PROTOCOL_CALLBACK(sync)
RELAY_API_DATA(client, sync_nicks) = 1;
RELAY_API_DATA(client, sync_colors) = RELAY_API_COLORS_ANSI;

json_body = cJSON_Parse(client->http_req->body);
json_body = cJSON_Parse (client->http_req->body);
if (json_body)
{
json_sync = cJSON_GetObjectItem (json_body, "sync");
Expand Down Expand Up @@ -742,7 +742,7 @@ relay_api_protocol_recv_json (struct t_relay_client *client, const char *json)

relay_http_request_reinit (client->http_req);

json_obj = cJSON_Parse(json);
json_obj = cJSON_Parse (json);
if (!json_obj)
goto error;

Expand Down

0 comments on commit 3f993f9

Please sign in to comment.