Changeset 4441


Ignore:
Timestamp:
05/16/08 16:41:47 (5 years ago)
Author:
thomas
Message:

opkg: set callbacks before opkg_conf_init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/libopkg.c

    r4357 r4441  
    478478           args.noreadfeedsfile = 1; 
    479479 
    480  
    481         err = opkg_conf_init (&opkg_conf, &args); 
    482         if (err) 
    483         { 
    484                 return err; 
    485         } 
    486  
    487         args_deinit (&args); 
    488  
    489480        opkg_cb_message = default_opkg_message_callback; 
    490481        opkg_cb_response = default_opkg_response_callback; 
    491482        opkg_cb_status = default_opkg_status_callback; 
     483 
     484 
     485        err = opkg_conf_init (&opkg_conf, &args); 
     486        if (err) 
     487        { 
     488                return err; 
     489        } 
     490 
     491        args_deinit (&args); 
     492 
    492493        if ( strcmp(cmd_name, "files")==0) 
    493494             opkg_cb_list = default_opkg_files_callback; 
Note: See TracChangeset for help on using the changeset viewer.