summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2015-03-15 15:49:05 -0700
committerKent Overstreet <kmo@daterainc.com>2015-03-15 15:50:07 -0700
commitfedea006239b1f323d94f931c9e3c797fa257a74 (patch)
tree6b2c23d871e134ef08192b638e6ec698d26d8f79
parente24b52260eb6e97a95ed6f199ec58a60084ee288 (diff)
Minor cleanup
-rw-r--r--Makefile3
-rw-r--r--bcacheadm.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 34d8694..60abbd8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ PREFIX=/usr
UDEVLIBDIR=/lib/udev
DRACUTLIBDIR=/lib/dracut
INSTALL=install
-CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -I.
+CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -Iinclude
+LDFLAGS+=-static
all: bcacheadm probe-bcache
diff --git a/bcacheadm.c b/bcacheadm.c
index d6e2d86..792b5b7 100644
--- a/bcacheadm.c
+++ b/bcacheadm.c
@@ -22,13 +22,12 @@
#include <stdint.h>
#include <blkid.h>
#include <string.h>
-#include <linux/fs.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <uuid/uuid.h>
#include <dirent.h>
-#include <bcache.h> //libbcache
+#include "bcache.h" //libbcache
#define PACKAGE_NAME "bcacheadm"
#define PACKAGE_VERSION "1.0"