adjust includes according to iwyu 3.5

This commit is contained in:
josch
2014-12-29 09:49:48 +01:00
parent 8c5bb77601
commit a0c534b803
10 changed files with 36 additions and 67 deletions

View File

@@ -21,9 +21,6 @@
#include <stdio.h>
#include <string.h>
#include <openssl/sha.h>
#ifdef __linux
#include <fcntl.h>
#endif
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -336,7 +333,7 @@ static int filecache_download_file(const char *filecache_path,
file = file_alloc();
retval = mfconn_api_file_get_links(conn, file,
(char *)quickkey,
LINK_TYPE_DIRECT_DOWNLOAD);
MFCONN_FILE_LINK_TYPE_DIRECT_DOWNLOAD);
if (retval != 0) {
fprintf(stderr, "mfconn_api_file_get_links failed\n");

View File

@@ -31,12 +31,9 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#ifdef __linux
#include <fcntl.h>
#endif
#include <pwd.h>
#include <wordexp.h>
#include <fcntl.h>
#include <stdbool.h>
#include "../mfapi/mfconn.h"

View File

@@ -31,15 +31,16 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#ifdef __linux
#include <fcntl.h>
#endif
#include <fuse/fuse_common.h>
#include <stdint.h>
#include <libgen.h>
#include <stdbool.h>
#include <time.h>
#include "../mfapi/mfconn.h"
#include "../mfapi/apicalls.h"
#include "../utils/stringv.h"
#include "hashtbl.h"
#include "operations.h"

View File

@@ -26,6 +26,12 @@
#include "hashtbl.h"
#include "../utils/stringv.h"
struct fuse_conn_info;
struct fuse_file_info;
struct stat;
struct statvfs;
struct timespec;
struct mediafirefs_context_private {
mfconn *conn;
folder_tree *tree;