author | Alberto Bertogli
<albertito@gmail.com> 2004-07-25 00:47:22 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 13:16:57 UTC |
parent | 280a1fdae6cec1d5c65a89037b744f823d8b9d3d |
check.c | +1 | -1 |
trans.c | +1 | -1 |
diff --git a/check.c b/check.c index ecdee7b..c8c5de2 100644 --- a/check.c +++ b/check.c @@ -144,7 +144,7 @@ int jfsck(const char *name, struct jfsck_result *res) } fs.jfd = rv; - fs.jmap = (int *) mmap(NULL, sizeof(unsigned int), + fs.jmap = (unsigned int *) mmap(NULL, sizeof(unsigned int), PROT_READ | PROT_WRITE, MAP_SHARED, fs.jfd, 0); if (fs.jmap == MAP_FAILED) { ret = J_ENOJOURNAL; diff --git a/trans.c b/trans.c index bf1bad0..4d30a0c 100644 --- a/trans.c +++ b/trans.c @@ -565,7 +565,7 @@ int jopen(struct jfs *fs, const char *name, int flags, int mode, int jflags) fs->jfd = jfd; - fs->jmap = (int *) mmap(NULL, sizeof(unsigned int), + fs->jmap = (unsigned int *) mmap(NULL, sizeof(unsigned int), PROT_READ | PROT_WRITE, MAP_SHARED, jfd, 0); if (fs->jmap == MAP_FAILED) return -1;