diff --git a/data.h b/data.h deleted file mode 100644 index faf6be2..0000000 --- a/data.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef DATA_H -#define DATA_H -/** - * \file data.h - * \brief This header stores all the custom data type definition - */ - -#include - -/** \brief use this data type for buffer */ -typedef struct BufferStruct BufferStruct; - -struct MemoryStruct { - char *memory; - size_t size; -}; - -typedef struct MemoryStruct MemoryStruct; - -#endif diff --git a/main.c b/main.c index 0349364..07c440c 100644 --- a/main.c +++ b/main.c @@ -7,6 +7,7 @@ #include #include #include +#include #include static char *BASE_URL; @@ -49,7 +50,7 @@ static void fs_usage() { fprintf(stderr, "usage: mount-http-dir [options] URL mount_point\n"); - abort(); + exit(EXIT_FAILURE); } static void *fs_init(struct fuse_conn_info *conn) diff --git a/network.c b/network.c index 14e220c..aa06d2a 100644 --- a/network.c +++ b/network.c @@ -11,6 +11,13 @@ #define HTTP_OK 200 #define HTTP_PARTIAL_CONTENT 206 +/* ------------------------ Local structs ---------------------------------*/ +struct MemoryStruct { + char *memory; + size_t size; +}; +typedef struct MemoryStruct MemoryStruct; + /* ------------------------ External variables ----------------------------*/ LinkTable *ROOT_LINK_TBL; diff --git a/network.h b/network.h index e87d859..9290f53 100644 --- a/network.h +++ b/network.h @@ -1,8 +1,6 @@ #ifndef NETWORK_H #define NETWORK_H -#include "data.h" - #include #include @@ -10,7 +8,7 @@ #define LINK_LEN_MAX 255 #ifndef HTTPDIRFS_SINGLE -# define CURL_MULTI_MAX_CONNECTION 10 +# define CURL_MULTI_MAX_CONNECTION 20 #endif /** \brief the link type */