[mdadm/f15/master] More compile fixes.
Doug Ledford
dledford at fedoraproject.org
Sat Mar 26 18:05:23 UTC 2011
commit 27c1d165f57d93bb6e908f15a2326a3b44014788
Author: Doug Ledford <dledford at redhat.com>
Date: Sat Mar 26 14:05:12 2011 -0400
More compile fixes.
Signed-off-by: Doug Ledford <dledford at redhat.com>
mdadm-3.1.5-unused-param.patch | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/mdadm-3.1.5-unused-param.patch b/mdadm-3.1.5-unused-param.patch
index 29c0937..33b3c62 100644
--- a/mdadm-3.1.5-unused-param.patch
+++ b/mdadm-3.1.5-unused-param.patch
@@ -94,3 +94,22 @@
cnt++;
}
}
+--- mdadm-3.1.5/sysfs.c.param 2011-03-26 14:03:54.206714522 -0400
++++ mdadm-3.1.5/sysfs.c 2011-03-26 14:04:37.277821858 -0400
+@@ -422,7 +422,6 @@ int sysfs_set_num(struct mdinfo *sra, st
+ int sysfs_uevent(struct mdinfo *sra, char *event)
+ {
+ char fname[50];
+- int n;
+ int fd;
+
+ sprintf(fname, "/sys/block/%s/uevent",
+@@ -430,7 +429,7 @@ int sysfs_uevent(struct mdinfo *sra, cha
+ fd = open(fname, O_WRONLY);
+ if (fd < 0)
+ return -1;
+- n = write(fd, event, strlen(event));
++ write(fd, event, strlen(event));
+ close(fd);
+ return 0;
+ }
More information about the scm-commits
mailing list