Add alignment test to distributed files.
Fix write() return compiler warning.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@202
36d66b0a-2a48-0410-832c-
cd162a569da5
-#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/ioctl.h>
-#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <libdevmapper.h>
-#include <linux/dm-ioctl.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <uuid/uuid.h>
#include "luks.h"
#define DEVICE_DIR "/dev"
+#define DM_UUID_LEN 129
#define DM_UUID_PREFIX "CRYPT-"
#define DM_UUID_PREFIX_LEN 6
#define DM_CRYPT_TARGET "crypt"
tcsetattr(infd, TCSAFLUSH, &orig);
out_err:
- if (!failed)
- (void)write(outfd, "\n", 1);
+ if (!failed && write(outfd, "\n", 1));
+
if (infd != STDIN_FILENO)
close(infd);
return failed;
TESTS = apitest
-EXTRA_DIST = fileDiffer.py compatimage.img.bz2
+EXTRA_DIST = fileDiffer.py compatimage.img.bz2 align_test
apitest_SOURCES = apitest.c
apitest_LDADD = ../lib/libcryptsetup.la