Gedare Bloom started a new discussion on 
cpukit/libfs/src/littlefs/rtems-littlefs-dir.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147509

 > +                                 node->path,
 > +                                 info.name,
 > +                                 strlen( info.name ) );
 > +  if ( rc < 0 ) {
 > +    free( full_path );
 > +    rtems_littlefs_unlock( mt_entry );
 > +    return -1;
 > +  }
 > +
 > +  dp->d_ino = rtems_littlefs_hash_path( full_path );
 > +  free( full_path );
 > +
 > +  dp->d_off = iop->offset;
 > +  dp->d_reclen = sizeof( struct dirent );
 > +
 > +  size_t name_len = strlen( info.name );

declare all variables at the start of their scope.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147509
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to