File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ static int romfs_cachenode(FAR struct romfs_mountpt_s *rm,
605
605
FAR struct romfs_nodeinfo_s * * child ;
606
606
FAR struct romfs_nodeinfo_s * nodeinfo ;
607
607
char childname [NAME_MAX + 1 ];
608
- uint8_t num = 0 ;
608
+ uint16_t count = 0 ;
609
609
uint32_t info ;
610
610
size_t nsize ;
611
611
int ret ;
@@ -670,21 +670,21 @@ static int romfs_cachenode(FAR struct romfs_mountpt_s *rm,
670
670
return ret ;
671
671
}
672
672
673
- if (child == NULL || nodeinfo -> rn_count == num - 1 )
673
+ if (child == NULL || nodeinfo -> rn_count == count - 1 )
674
674
{
675
675
FAR void * tmp ;
676
676
677
677
tmp = fs_heap_realloc (nodeinfo -> rn_child ,
678
- (num + NODEINFO_NINCR ) * sizeof (* nodeinfo -> rn_child ));
678
+ (count + NODEINFO_NINCR ) * sizeof (* nodeinfo -> rn_child ));
679
679
if (tmp == NULL )
680
680
{
681
681
return - ENOMEM ;
682
682
}
683
683
684
684
nodeinfo -> rn_child = tmp ;
685
- memset (nodeinfo -> rn_child + num , 0 , NODEINFO_NINCR *
685
+ memset (nodeinfo -> rn_child + count , 0 , NODEINFO_NINCR *
686
686
sizeof (* nodeinfo -> rn_child ));
687
- num += NODEINFO_NINCR ;
687
+ count += NODEINFO_NINCR ;
688
688
}
689
689
690
690
child = & nodeinfo -> rn_child [nodeinfo -> rn_count ++ ];
You can’t perform that action at this time.
0 commit comments