if (!(tresp = malloc(sizeof(TID_RESP)))) {
fprintf (stderr, "tr_msg_decode_tidresp(): Error allocating TID_RESP structure.\n");
if (!(tresp = malloc(sizeof(TID_RESP)))) {
fprintf (stderr, "tr_msg_decode_tidresp(): Error allocating TID_RESP structure.\n");
if (0 == (strcmp(json_string_value(jresult), "success"))) {
fprintf(stderr, "tr_msg_decode_tidresp(): Success! result = %s.\n", json_string_value(jresult));
if (0 == (strcmp(json_string_value(jresult), "success"))) {
fprintf(stderr, "tr_msg_decode_tidresp(): Success! result = %s.\n", json_string_value(jresult));
tresp->result = TID_SUCCESS;
}
else {
tresp->result = TID_ERROR;
fprintf(stderr, "tr_msg_decode_tidresp(): Error! result = %s.\n", json_string_value(jresult));
tresp->result = TID_SUCCESS;
}
else {
tresp->result = TID_ERROR;
fprintf(stderr, "tr_msg_decode_tidresp(): Error! result = %s.\n", json_string_value(jresult));