More compile fixes.

Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Doug Ledford 2011-03-26 14:05:12 -04:00
parent 78bb9b4703
commit 27c1d165f5

View File

@ -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;
}