reformat all files

This commit is contained in:
Maxim Slipenko 2023-11-29 14:00:52 +03:00
parent f69b73187e
commit 54fa7bb7d0
4 changed files with 31 additions and 29 deletions

View File

@ -36,7 +36,8 @@ static size_t cb(void *data, size_t size, size_t nmemb, void *clientp)
return realsize; return realsize;
} }
char* build_query_string(query_param *params, size_t num_params) { char* build_query_string(query_param* params, size_t num_params)
{
CURL* curl = curl_easy_init(); CURL* curl = curl_easy_init();
if (!curl) { if (!curl) {
return NULL; return NULL;
@ -79,7 +80,8 @@ int api_http_request(
query_param* params, query_param* params,
size_t num_params, size_t num_params,
char** output char** output
) { )
{
CURL* curl; CURL* curl;
CURLcode res; CURLcode res;
struct memory chunk = {0}; struct memory chunk = {0};

View File

@ -14,8 +14,7 @@
const char* created; \ const char* created; \
const char* modified; const char* modified;
struct yadisk_resource_item struct yadisk_resource_item {
{
YADISK_RESOURCE_ITEM_PROPERTIES YADISK_RESOURCE_ITEM_PROPERTIES
}; };

View File

@ -5,7 +5,8 @@
#include <yadisk.h> #include <yadisk.h>
#include <stdio.h> #include <stdio.h>
int main() { int main()
{
char token[1024]; char token[1024];
printf("Enter OAuth token: "); printf("Enter OAuth token: ");