Changeset 04a7435f in mainline for uspace/app/bithenge/print.c


Ignore:
Timestamp:
2012-06-26T19:56:26Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
978ccaf1
Parents:
f2da0bb
Message:

Bithenge: add the struct transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/print.c

    rf2da0bb r04a7435f  
    4949{
    5050        print_internal_data_t *data = (print_internal_data_t *)data_;
    51         int rc;
     51        int rc = EOK;
    5252        if (!data->first)
    5353                printf(", ");
     
    5959        rc = bithenge_print_node(data->type, key);
    6060        if (rc != EOK)
    61                 return rc;
     61                goto end;
    6262        if (add_quotes)
    6363                printf("\"");
     
    6565        rc = bithenge_print_node(data->type, value);
    6666        if (rc != EOK)
    67                 return rc;
    68         return EOK;
     67                goto end;
     68end:
     69        bithenge_node_dec_ref(key);
     70        bithenge_node_dec_ref(value);
     71        return rc;
    6972}
    7073
Note: See TracChangeset for help on using the changeset viewer.