From 13d64ea3908eac5e5686992e081e99897060142d Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Mon, 21 Feb 2011 21:55:51 +0000
Subject: [PATCH 02/24] Minor code cleanup

This patch contains three minor cleanups, that do not change the build result
but are purely aesthetic.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 libjio/trans.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libjio/trans.c b/libjio/trans.c
index 1f7b66f..ed76387 100644
--- a/libjio/trans.c
+++ b/libjio/trans.c
@@ -631,12 +631,12 @@ struct jfs *jopen(const char *name, int flags, int mode, unsigned int jflags)
 
 	if (!get_jdir(name, jdir))
 		goto error_exit;
-	rv = mkdir(jdir, 0750);
+	mkdir(jdir, 0750);
 	rv = lstat(jdir, &sinfo);
 	if (rv < 0 || !S_ISDIR(sinfo.st_mode))
 		goto error_exit;
 
-	fs->jdir = (char *) malloc(strlen(jdir) + 1);
+	fs->jdir = malloc(strlen(jdir) + 1);
 	if (fs->jdir == NULL)
 		goto error_exit;
 	strcpy(fs->jdir, jdir);
@@ -733,7 +733,7 @@ int jmove_journal(struct jfs *fs, const char *newpath)
 	oldpath = fs->jdir;
 	snprintf(oldjlockfile, PATH_MAX, "%s/lock", fs->jdir);
 
-	fs->jdir = (char *) malloc(strlen(newpath) + 1);
+	fs->jdir = malloc(strlen(newpath) + 1);
 	if (fs->jdir == NULL)
 		return -1;
 	strcpy(fs->jdir, newpath);
-- 
1.6.2.2.646.gb214

