diff options
| author | Jan Sucan <jan@jansucan.com> | 2021-05-30 18:10:42 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2021-05-30 18:10:42 +0200 |
| commit | f1ced068f1eccdf2866a91334d4e271e8f94802d (patch) | |
| tree | 3b582b4a96dacdc8bb1420dae964a49f8f7bbfdd /src | |
| parent | e19731f6d38aa0931f59bba95565c8f40f1dc3b0 (diff) | |
Unify ordering of the includes
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.c | 7 | ||||
| -rw-r--r-- | src/main.c | 14 | ||||
| -rw-r--r-- | src/options.c | 7 | ||||
| -rw-r--r-- | src/print.c | 4 | ||||
| -rw-r--r-- | src/resources.c | 4 |
5 files changed, 19 insertions, 17 deletions
@@ -24,12 +24,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <errno.h> -#include <string.h> - #include "file.h" + #include "print.h" +#include <errno.h> +#include <string.h> + long file_size(FILE *const file) { @@ -24,6 +24,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "backup.h" +#include "file.h" +#include "options.h" +#include "print.h" +#include "resources.h" +#include "restore.h" + #include <endian.h> #include <errno.h> #include <inttypes.h> @@ -32,13 +39,6 @@ #include <stdlib.h> #include <string.h> -#include "backup.h" -#include "file.h" -#include "options.h" -#include "print.h" -#include "resources.h" -#include "restore.h" - static void clean_exit(resources_t *const res, int exit_code) { diff --git a/src/options.c b/src/options.c index 91fcf8f..002b36c 100644 --- a/src/options.c +++ b/src/options.c @@ -24,15 +24,16 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "options.h" + +#include "print.h" + #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include "options.h" -#include "print.h" - /* This header file is automatically generated at build time from the Makefile */ #include "program_info.h" diff --git a/src/print.c b/src/print.c index fc0c923..1dcb75a 100644 --- a/src/print.c +++ b/src/print.c @@ -24,11 +24,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "print.h" + #include <stdarg.h> #include <stdio.h> -#include "print.h" - #define PRINT_ERROR_PREFIX "ERROR: " #define PRINT_ERROR_SUFFIX "\n" diff --git a/src/resources.c b/src/resources.c index fa5fc2f..65b7f71 100644 --- a/src/resources.c +++ b/src/resources.c @@ -24,11 +24,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "resources.h" + #include <stdio.h> #include <stdlib.h> -#include "resources.h" - void resources_init(resources_t *const res) { |
