Skip to content

Commit

Permalink
removed unnecessary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed Sep 3, 2021
1 parent 7c6433f commit 6819ad0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/fuse_local.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "fuse_local.h"

#include "cache.h"
#include "link.h"
#include "log.h"

/*
Expand Down
2 changes: 0 additions & 2 deletions src/link.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include "link.h"

#include "util.h"
#include "cache.h"
#include "network.h"
#include "sonic.h"
#include "log.h"

#include <gumbo.h>
Expand Down
8 changes: 5 additions & 3 deletions src/link.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ typedef struct Link Link;
typedef struct LinkTable LinkTable;
typedef struct TransferStruct TransferStruct;

#include "sonic.h"
#include "config.h"
#include "sonic.h"
#include "cache.h"
#include <curl/curl.h>

Expand Down Expand Up @@ -42,14 +42,16 @@ struct TransferStruct {
char *data;
/** \brief The current size of the array */
size_t curr_size;
/** \brief The minium requested size */
size_t min_req_size;
/** \brief The type of transfer being done */
TransferType type;
/** \brief Whether transfer is in progress */
volatile int transferring;
/** \brief The link associated with the transfer */
Link *link;
/** \brief The minium requested size */
size_t min_req_size;
/** \brief Whether we have sent off the minimally requested data*/
int min_data_sent;
};

/**
Expand Down
3 changes: 1 addition & 2 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "config.h"
#include "util.h"
#include "cache.h"
#include "link.h"
#include "fuse_local.h"
#include "network.h"
#include "log.h"
Expand Down
2 changes: 0 additions & 2 deletions src/network.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "network.h"

#include "util.h"
#include "cache.h"
#include "config.h"
#include "log.h"

#include <openssl/crypto.h>
Expand Down

0 comments on commit 6819ad0

Please sign in to comment.