Changeset 3593

Show
Ignore:
Timestamp:
08/23/08 19:46:22 (3 months ago)
Author:
dgollub
Message:

Quote the format name. Wrong term: objtype -> format.
Instead of allocating a new objformat, just use the real out of the
format environment.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • format-plugins/vformat/tools/vconvert.c

    r3564 r3593  
    273273        } 
    274274 
    275         fprintf(stderr, "Cannot convert objtype %s. Unable to find a converter\n", osync_objformat_get_name(sourceformat)); 
     275        fprintf(stderr, "Cannot convert format \"%s\". Unable to find a converter\n", osync_objformat_get_name(sourceformat)); 
    276276out: 
    277277        return targetformat; 
     
    361361 
    362362        // just setup a dummyformat to complete data for osync_data_new 
    363         OSyncObjFormat *dummyformat = osync_objformat_new("plain", "data", &error); 
     363        OSyncObjFormat *dummyformat = osync_format_env_find_objformat(format_env, "plain"); 
    364364 
    365365        if (!(data = osync_data_new(buffer, size, dummyformat, &error))) { 
     
    368368 
    369369        osync_change_set_data(change, data); 
    370  
    371         osync_objformat_unref(dummyformat);      
    372370 
    373371        // detect source and target xmlformat