summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-29 02:06:32 +0000
committerNeil Brown <neilb@suse.de>2006-05-29 02:06:32 +0000
commitb56c3630901b7074f7f64989a39b73f6055f04e9 (patch)
treebbca33356908eb2a01d507716c6d39d102679113 /mdadm.h
parentb1ec2d6a74ca0a4d139563c2a2a08f7903355843 (diff)
downloadmdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.tar.gz
mdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.tar.xz
mdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.zip
add CFLAGS to mdassemble build and fix a couple of non-returning functions
pass CFLAGS to mdassemble build, enabling -Wall -Werror showed some issues also fixed by the patch. From: Luca Berra <bluca@vodka.it> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdadm.h b/mdadm.h
index ba00a9b..36704f9 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -44,10 +44,8 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
#include <errno.h>
#include <string.h>
#include <syslog.h>
-#ifdef __dietlibc__NONO
-int strncmp(const char *s1, const char *s2, size_t n) __THROW __pure__;
-char *strncpy(char *dest, const char *src, size_t n) __THROW;
-#include <strings.h>
+#ifdef __dietlibc__
+#include <strings.h>
#endif