diff options
author | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
commit | 1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch) | |
tree | 03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /bitmap.c | |
parent | a92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff) | |
download | mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.gz |
Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |