diff mbox

dmraid/lib/misc file.c

Message ID 20100111161930.24052.qmail@sourceware.org (mailing list archive)
State New, archived
Headers show

Commit Message

heinzm@sourceware.org Jan. 11, 2010, 4:19 p.m. UTC
None
diff mbox

Patch

--- dmraid/lib/misc/file.c	2008/06/20 21:52:18	1.3
+++ dmraid/lib/misc/file.c	2010/01/11 16:19:29	1.4
@@ -32,7 +32,6 @@ 
 	} while (s);
 
 	dbg_free(orig);
-
 	return ret;
 }
 
@@ -62,9 +61,9 @@ 
 		ssize_t(*func) ();
 		const char *what;
 	} rw_spec[] = {
-		{
-		read, "read"}, {
-	write, "writ"},}, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0);
+		{ read, "read"},
+		{ write, "writ"},
+	}, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0);
 
 	if ((fd = open(path, flags, lc->mode)) == -1)
 		LOG_ERR(lc, 0, "opening \"%s\"", path);
@@ -84,7 +83,6 @@ 
 		ret = 1;
 
 	close(fd);
-
 	return ret;
 }