diff options
author | Petri Lehtinen <petri@digip.org> | 2019-10-19 20:35:28 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2019-10-21 08:56:03 +0300 |
commit | a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b (patch) | |
tree | 366ad4f7e39808675d35d9c941fd51a8c86b0bda /doc | |
parent | 7c0297abe8f4fb4aafd642c3130628185dc78978 (diff) | |
download | jansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.zip jansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.tar.gz jansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.tar.bz2 |
Tweak clang-format configuration a bit
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/github_commits.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/doc/github_commits.c b/doc/github_commits.c index 09923cd..c020f46 100644 --- a/doc/github_commits.c +++ b/doc/github_commits.c @@ -31,8 +31,7 @@ struct write_result { int pos; }; -static size_t write_response(void *ptr, size_t size, size_t nmemb, - void *stream) { +static size_t write_response(void *ptr, size_t size, size_t nmemb, void *stream) { struct write_result *result = (struct write_result *)stream; if (result->pos + size * nmemb >= BUFFER_SIZE - 1) { @@ -146,38 +145,34 @@ int main(int argc, char *argv[]) { data = json_array_get(root, i); if (!json_is_object(data)) { - fprintf(stderr, "error: commit data %d is not an object\n", - (int)(i + 1)); + fprintf(stderr, "error: commit data %d is not an object\n", (int)(i + 1)); json_decref(root); return 1; } sha = json_object_get(data, "sha"); if (!json_is_string(sha)) { - fprintf(stderr, "error: commit %d: sha is not a string\n", - (int)(i + 1)); + fprintf(stderr, "error: commit %d: sha is not a string\n", (int)(i + 1)); return 1; } commit = json_object_get(data, "commit"); if (!json_is_object(commit)) { - fprintf(stderr, "error: commit %d: commit is not an object\n", - (int)(i + 1)); + fprintf(stderr, "error: commit %d: commit is not an object\n", (int)(i + 1)); json_decref(root); return 1; } message = json_object_get(commit, "message"); if (!json_is_string(message)) { - fprintf(stderr, "error: commit %d: message is not a string\n", - (int)(i + 1)); + fprintf(stderr, "error: commit %d: message is not a string\n", (int)(i + 1)); json_decref(root); return 1; } message_text = json_string_value(message); - printf("%.8s %.*s\n", json_string_value(sha), - newline_offset(message_text), message_text); + printf("%.8s %.*s\n", json_string_value(sha), newline_offset(message_text), + message_text); } json_decref(root); |