int run_unregister_command(command_t *cmd) { assert(cmd->cid == UNREGISTER); /* remove client */ client_data_t *client = registration_remove(cmd->key); if (client != NULL) { printf("### Unregister client %s (key = %lu)\n", client->client_name, client->key); free_client_data(client); return 0; } else { fprintf(stderr,"Warning -- failed to unregister a client (key %lu)\n", cmd->key); return -1; } }
static void delete_client_data (Isis_Rmf_t *rmf) /*{{{*/ { free_client_data ((Client_Data_t *)rmf->client_data); ISIS_FREE(rmf->client_data); }