src/dps8/fnp_ipc.c
// enter peer into list (if possible)
enter peer into list (if possible)
enter peer into list ( if possible )
IPC_Peer *savePeer(char *name, char *id)
{
    IPC_Peer *s = findPeer(name);
    if (s == NULL)
    {
        IPC_Peer *s = (IPC_Peer*)calloc(1, sizeof(IPC_Peer));
        assert(s);
        s->peerName = strdup(name);
        s->peerID = strdup(id);
        HASH_ADD_KEYPTR( hh, Peers, s->peerName, strlen(s->peerName), s );
        sim_printf("saved peer %s/%s\n", name, id);
    }
    return s;
}
IPC_Peer * savePeer ( char * name , char * id ) { IPC_Peer * s = findPeer ( name ) ; if ( s == NULL ) { IPC_Peer * s = ( IPC_Peer * ) calloc ( 1 , sizeof ( IPC_Peer ) ) ; assert ( s ) ; s -> peerName = strdup ( name ) ; s -> peerID = strdup ( id ) ; HASH_ADD_KEYPTR ( hh , Peers , s -> peerName , strlen ( s -> peerName ) , s ) ; sim_printf ( " \n " , name , id ) ; } return s ; }
enter peer into list (if possible)
enter peer into list ( if possible )