openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/shadow/4.6-r0/shadow-4.6/lib/subordinateio.c
static /*@null@*/ /*@only@*/ void* subordinate_dup(const void* ent)
{
    const struct subordinate_range* rangeent = ent;
    struct subordinate_range* range;

    range = (struct subordinate_range*)malloc(sizeof *range);
    if (NULL == range)
    {
        return NULL;
    }
    range->owner = strdup(rangeent->owner);
    if (NULL == range->owner)
    {
        free(range);
        return NULL;
    }
    range->start = rangeent->start;
    range->count = rangeent->count;

    return range;
}
/*
 * subordinate_dup: create a duplicate range
 *
 * @ent: a pointer to a subordinate_range struct
 *
 * Returns a pointer to a newly allocated duplicate subordinate_range struct
 * or NULL on failure
 */
create a duplicate range
@ent: a pointer to a subordinate_range struct

Returns a pointer to a newly allocated duplicate subordinate_range struct
or NULL on failure
create a duplicate range @ent : a pointer to a subordinate_range struct Returns a pointer to a newly allocated duplicate subordinate_range struct or NULL on failure
static   void* subordinate_dup(const void* ent)
{
    const struct subordinate_range* rangeent = ent;
    struct subordinate_range* range;
    range = (struct subordinate_range*)malloc(sizeof *range);
    if (NULL == range)
    {
        return NULL;
    }
    range->owner = strdup(rangeent->owner);
    if (NULL == range->owner)
    {
        free(range);
        return NULL;
    }
    range->start = rangeent->start;
    range->count = rangeent->count;
    return range;
}
static void * subordinate_dup ( const void * ent ) { const struct subordinate_range * rangeent = ent ; struct subordinate_range * range ; range = ( struct subordinate_range * ) malloc ( sizeof * range ) ; if ( NULL == range ) { return NULL ; } range -> owner = strdup ( rangeent -> owner ) ; if ( NULL == range -> owner ) { free ( range ) ; return NULL ; } range -> start = rangeent -> start ; range -> count = rangeent -> count ; return range ; }
subordinate_dup: create a duplicate range
 @ent: a pointer to a subordinate_range struct
subordinate_dup : create a duplicate range @ent : a pointer to a subordinate_range struct
/*@null@*/ /*@only@*/