summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
committerNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
commit1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch)
tree03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /bitmap.c
parenta92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff)
downloadmdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.gz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.xz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.zip
Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitmap.c b/bitmap.c
index afa10cf..b044cd8 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -21,7 +21,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "mdadm.h"
-#include <asm/byteorder.h>
#define min(a,b) (((a) < (b)) ? (a) : (b))
@@ -357,7 +356,8 @@ int CreateBitmap(char *filename, int force, char uuid[16],
rv = 0;
/* make the file be the right size (well, to the nearest byte) */
- ftruncate(fileno(fp), filesize);
+ if (ftruncate(fileno(fp), filesize))
+ perror("ftrunace");
out:
fclose(fp);
if (rv)