changed header inclusion order

This commit is contained in:
Fufu Fang 2019-04-23 23:48:08 +01:00
parent 3a0c431bba
commit 0892cd0a8a
7 changed files with 10 additions and 16 deletions

View File

@ -1,18 +1,17 @@
#include "cache.h"
#include "link.h"
#include "util.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
/**
* \brief Data file block size

View File

@ -4,9 +4,7 @@
#include "link.h"
#include <pthread.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
/**
* \file cache.h

View File

@ -1,10 +1,12 @@
#include "fuse_local.h"
#include "cache.h"
#include "link.h"
/* must be included before including <fuse.h> */
#define FUSE_USE_VERSION 26
#include <fuse.h>
#include <errno.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>

View File

@ -1,10 +1,6 @@
#ifndef FUSE_LOCAL_H
#define FUSE_LOCAL_H
/* must be included before including <fuse.h> */
#define FUSE_USE_VERSION 26
#include <fuse.h>
/* Initialise fuse */
int fuse_local_init(int argc, char **argv);

View File

@ -7,6 +7,7 @@
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

View File

@ -3,8 +3,6 @@
#include <curl/curl.h>
#include <stdlib.h>
/** \brief the maximum length of the URL */
#define URL_LEN_MAX 2048
/** \brief the maximum length of a partial URL (a link) */

View File

@ -3,8 +3,8 @@
#include "fuse_local.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#define ARG_LEN_MAX 64