diff options
author | James Booth <boothj5@gmail.com> | 2017-02-05 21:09:03 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2017-02-05 21:09:03 +0000 |
commit | 286fecf38d218d10366f025faf7cffcb425e19f4 (patch) | |
tree | 331a61f379d7513c8bc9d6db0d852e5fdb0518aa /src/tools | |
parent | c405367dfeb3c23bac192a170501e569be934f26 (diff) | |
download | profani-tty-286fecf38d218d10366f025faf7cffcb425e19f4.tar.gz |
Allow installing plugins from directory
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/http_upload.c | 8 | ||||
-rw-r--r-- | src/tools/http_upload.h | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/tools/http_upload.c b/src/tools/http_upload.c index c1ac9fdf..6e5dd27c 100644 --- a/src/tools/http_upload.c +++ b/src/tools/http_upload.c @@ -52,6 +52,7 @@ #include "config/preferences.h" #include "ui/ui.h" #include "ui/window.h" +#include "common.h" #define FALLBACK_MIMETYPE "application/octet-stream" #define FALLBACK_CONTENTTYPE_HEADER "Content-Type: application/octet-stream" @@ -330,10 +331,3 @@ off_t file_size(const char* const filename) stat(filename, &st); return st.st_size; } - -int is_regular_file(const char *filename) -{ - struct stat st; - stat(filename, &st); - return S_ISREG(st.st_mode); -} diff --git a/src/tools/http_upload.h b/src/tools/http_upload.h index 15281fa5..ae8f8223 100644 --- a/src/tools/http_upload.h +++ b/src/tools/http_upload.h @@ -62,6 +62,5 @@ void* http_file_put(void *userdata); char* file_mime_type(const char* const file_name); off_t file_size(const char* const file_name); -int is_regular_file(const char *filename); #endif |