projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1c37d23
)
Fix kernel compilation probs
author
charles
<charles>
Thu, 8 Dec 2005 00:51:15 +0000
(
00:51
+0000)
committer
charles
<charles>
Thu, 8 Dec 2005 00:51:15 +0000
(
00:51
+0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index b17262beee992cfedb11d4b7031791188fe248ef..6c109c7374279abf1471bb16042d144e9162597b 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-13,7
+13,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.2
4 2005-12-07 21:49:18
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.2
5 2005-12-08 00:51:15
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-541,7
+541,7
@@
static int yaffs_CreateTnodes(yaffs_Device * dev, int nTnodes)
int tnodeSize;
yaffs_Tnode *newTnodes;
__u8 *mem;
int tnodeSize;
yaffs_Tnode *newTnodes;
__u8 *mem;
- yaffs_Tnode *curr
ent
;
+ yaffs_Tnode *curr;
yaffs_Tnode *next;
yaffs_TnodeList *tnl;
yaffs_Tnode *next;
yaffs_TnodeList *tnl;
@@
-554,7
+554,8
@@
static int yaffs_CreateTnodes(yaffs_Device * dev, int nTnodes)
/* make these things */
/* make these things */
- mem = newTnodes = YMALLOC(nTnodes * tnodeSize);
+ newTnodes = YMALLOC(nTnodes * tnodeSize);
+ mem = (__u8 *)newTnodes;
if (!newTnodes) {
T(YAFFS_TRACE_ERROR,
if (!newTnodes) {
T(YAFFS_TRACE_ERROR,
@@
-579,13
+580,13
@@
static int yaffs_CreateTnodes(yaffs_Device * dev, int nTnodes)
#else
/* New hookup for wide tnodes */
for(i = 0; i < nTnodes -1; i++) {
#else
/* New hookup for wide tnodes */
for(i = 0; i < nTnodes -1; i++) {
- curr
ent
= (yaffs_Tnode *) &mem[i * tnodeSize];
+ curr = (yaffs_Tnode *) &mem[i * tnodeSize];
next = (yaffs_Tnode *) &mem[(i+1) * tnodeSize];
next = (yaffs_Tnode *) &mem[(i+1) * tnodeSize];
- curr
ent
->internal[0] = next;
+ curr->internal[0] = next;
}
}
- curr
ent
= (yaffs_Tnode *) &mem[(nTnodes - 1) * tnodeSize];
- curr
ent
->internal[0] = dev->freeTnodes;
+ curr = (yaffs_Tnode *) &mem[(nTnodes - 1) * tnodeSize];
+ curr->internal[0] = dev->freeTnodes;
dev->freeTnodes = (yaffs_Tnode *)mem;
#endif
dev->freeTnodes = (yaffs_Tnode *)mem;
#endif