aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file.c7
-rw-r--r--src/main.c14
-rw-r--r--src/options.c7
-rw-r--r--src/print.c4
-rw-r--r--src/resources.c4
5 files changed, 19 insertions, 17 deletions
diff --git a/src/file.c b/src/file.c
index 0dc36de..634bb3b 100644
--- a/src/file.c
+++ b/src/file.c
@@ -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)
{
diff --git a/src/main.c b/src/main.c
index 1b526d9..80e6129 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)
{