summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@beefcake.parabola.nu>2018-05-18 15:44:06 -0400
committerLuke Shumaker <lukeshu@beefcake.parabola.nu>2018-05-18 15:44:06 -0400
commite26aba8aeeba413fce861c78b46b27ac8b948ea7 (patch)
tree2e41760a2d040c9d07a5ede50553decc48c4ab4e
parent02442af0aec2d75aaab73cd605519eddfbe07a29 (diff)
tidy
-rw-r--r--Makefile4
-rw-r--r--src/cow-extent-map.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b76e7cc..9693ea4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
CFLAGS += -std=c11
+
CPPFLAGS += -I$(CURDIR)/lib
CPPFLAGS += -I$(CURDIR)/hack
+
+CFLAGS += -g
+
CFLAGS += -Wall -Werror -Wextra
CPPFLAGS += -O2 -D_FORTIFY_SOURCE=2
diff --git a/src/cow-extent-map.c b/src/cow-extent-map.c
index 6e7ee57..fe9e964 100644
--- a/src/cow-extent-map.c
+++ b/src/cow-extent-map.c
@@ -4,10 +4,10 @@
#include <error.h> /* for error(3gnu) */
#include <fcntl.h> /* for open(2) and O_RDONLY */
#include <getopt.h> /* for getopt_long(3gnu), struct option, optind, optarg */
-#include <inttypes.h> /* PRI* */
+#include <inttypes.h> /* for PRI* */
#include <stdbool.h> /* for bool, true, false */
#include <stdio.h> /* for printf(3p), fprintf(3p), stderr */
-#include <stdlib.h> /* free(3p), exit(3p), EXIT_SUCCESS, EXIT_FAILURE */
+#include <stdlib.h> /* for free(3p), exit(3p), EXIT_SUCCESS, EXIT_FAILURE */
#include <string.h> /* for strcmp(3p) */
#include "extent-map.h" /* for uint32_t, fiemap stuff */