aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqorg11 <qorg@vxempire.xyz>2021-06-29 14:42:16 +0200
committerqorg11 <qorg@vxempire.xyz>2021-06-29 14:42:16 +0200
commit63da7e2786e1fc9cbec870b138041e13525af98e (patch)
treec49832ec4fe5cbfb956437df62c372c3068e5b63
parent1b7402ee3f1b8034458b63ae8c47334c3d49f0e5 (diff)
downloaddemiurge-63da7e2786e1fc9cbec870b138041e13525af98e.tar.gz
demiurge-63da7e2786e1fc9cbec870b138041e13525af98e.zip
fix formatting a bit more
-rw-r--r--src/.clang-format6
-rw-r--r--src/login.c12
-rw-r--r--src/post.c7
-rw-r--r--src/upload_file.c7
4 files changed, 11 insertions, 21 deletions
diff --git a/src/.clang-format b/src/.clang-format
index ea78709..c834b51 100644
--- a/src/.clang-format
+++ b/src/.clang-format
@@ -10,9 +10,9 @@ AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
-AllowAllArgumentsOnNextLine: false
-AllowAllConstructorInitializersOnNextLine: false
-AllowAllParametersOfDeclarationOnNextLine: false
+AllowAllArgumentsOnNextLine: true
+AllowAllConstructorInitializersOnNextLine: true
+AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
diff --git a/src/login.c b/src/login.c
index 66e9a9b..44d4866 100644
--- a/src/login.c
+++ b/src/login.c
@@ -91,9 +91,8 @@ setup()
}
json_object_object_get_ex(parsed_json, "client_id", &json_client_id);
- json_object_object_get_ex(parsed_json,
- "client_secret",
- &json_client_secret);
+ json_object_object_get_ex(
+ parsed_json, "client_secret", &json_client_secret);
const char *client_id = json_object_get_string(json_client_id);
const char *client_secret = json_object_get_string(json_client_secret);
@@ -120,11 +119,8 @@ setup()
char *post_token_url = NULL;
- asprintf(&post_token_url,
- access_token_fmt,
- client_id,
- client_secret,
- code);
+ asprintf(
+ &post_token_url, access_token_fmt, client_id, client_secret, code);
post_url = NULL;
diff --git a/src/post.c b/src/post.c
index 573ba8f..202d1d9 100644
--- a/src/post.c
+++ b/src/post.c
@@ -34,11 +34,8 @@ post_status(const char *status, const char *scope, const char *media_id)
char client_secret[50];
char access_token[50];
- get_tokens_from_file(".demiurgerc",
- instance,
- client_id,
- client_secret,
- access_token);
+ get_tokens_from_file(
+ ".demiurgerc", instance, client_id, client_secret, access_token);
CURL *curl = curl_easy_init();
if(curl == NULL) {
fprintf(stderr, "Error creating libcurl thing\n");
diff --git a/src/upload_file.c b/src/upload_file.c
index 01ec791..2e2d8c9 100644
--- a/src/upload_file.c
+++ b/src/upload_file.c
@@ -34,11 +34,8 @@ upload_file(const char *path, const char *description, char **id_ptr)
struct json_object *json_media_id;
char buf[8192];
- get_tokens_from_file(".demiurgerc",
- instance,
- client_id,
- client_secret,
- access_token);
+ get_tokens_from_file(
+ ".demiurgerc", instance, client_id, client_secret, access_token);
CURL *curl = curl_easy_init();
if(curl == NULL) {
fprintf(stderr, "Error creating libcurl thing\n");