Changeset 13b71f8 in rtems


Ignore:
Timestamp:
Feb 29, 2020, 10:43:42 AM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
fa44c39
Parents:
0b0cd93
git-author:
Sebastian Huber <sebastian.huber@…> (02/29/20 10:43:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/20 08:30:03)
Message:

imfs: Simplify IMFS_create_node()

Update #3894.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_creat.c

    r0b0cd93 r13b71f8  
    3434{
    3535  IMFS_jnode_t *allocated_node;
     36  char         *allocated_name;
    3637  IMFS_jnode_t *node;
    3738
     
    4344  }
    4445
     46  allocated_name = (char *) allocated_node + node_size;
     47  allocated_name = memcpy( allocated_name, name, namelen );
    4548  node = IMFS_initialize_node(
    4649    allocated_node,
    4750    node_control,
    48     (char *) allocated_node + node_size,
     51    allocated_name,
    4952    namelen,
    5053    mode,
     
    5356  if ( node != NULL ) {
    5457    IMFS_jnode_t *parent = parentloc->node_access;
    55 
    56     memcpy( RTEMS_DECONST( char *, node->name ), name, namelen );
    5758
    5859    /*
Note: See TracChangeset for help on using the changeset viewer.