about summary refs log tree commit diff stats
path: root/tests/unittests/tools
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-07 13:53:30 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-07 13:53:30 +0200
commita4cadf78faabc157e5db00e42302d495bba432c0 (patch)
tree6ff212e24fe750b04b37ca66c418fe366c5e5fd4 /tests/unittests/tools
parent28fde3cd0129202d586cb4c24877a3e3f55ca582 (diff)
downloadprofani-tty-a4cadf78faabc157e5db00e42302d495bba432c0.tar.gz
Revert "Apply coding style"
This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2.

Sorting the includes creates some problems.
Diffstat (limited to 'tests/unittests/tools')
-rw-r--r--tests/unittests/tools/stub_http_upload.c39
1 files changed, 13 insertions, 26 deletions
diff --git a/tests/unittests/tools/stub_http_upload.c b/tests/unittests/tools/stub_http_upload.c
index 25a81708..3cfb1c5d 100644
--- a/tests/unittests/tools/stub_http_upload.c
+++ b/tests/unittests/tools/stub_http_upload.c
@@ -7,39 +7,26 @@
 // forward -> ui/win_types.h
 typedef struct prof_win_t ProfWin;
 
-typedef struct http_upload_t
-{
-    char* filename;
+typedef struct http_upload_t {
+    char *filename;
     off_t filesize;
     curl_off_t bytes_sent;
-    char* mime_type;
-    char* get_url;
-    char* put_url;
-    ProfWin* window;
+    char *mime_type;
+    char *get_url;
+    char *put_url;
+    ProfWin *window;
     pthread_t worker;
     int cancel;
 } HTTPUpload;
 
 //GSList *upload_processes;
 
-void*
-http_file_put(void* userdata)
-{
-    return NULL;
-}
-
-char*
-file_mime_type(const char* const file_name)
-{
-    return NULL;
-}
-off_t
-file_size(const char* const file_name)
-{
-    return 0;
-}
-
-void http_upload_cancel_processes(){};
-void http_upload_add_upload(){};
+void* http_file_put(void *userdata) { return NULL; }
+
+char* file_mime_type(const char* const file_name) { return NULL; }
+off_t file_size(const char* const file_name) { return 0; }
+
+void http_upload_cancel_processes() {};
+void http_upload_add_upload() {};
 
 #endif