Changeset 5266

Show
Ignore:
Timestamp:
02/14/08 06:09:04 (5 months ago)
Author:
morris
Message:

Update for libwired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/main.c

    r5138 r5266  
    100100 
    101101        /* set defaults */ 
    102         wi_root_path                   = wi_string_init_with_cstring(wi_string_alloc(), WD_ROOT); 
     102        wi_set_root_path(WI_STR(WD_ROOT)); 
    103103        wi_settings_config_path = wi_string_init_with_cstring(wi_string_alloc(), WD_CONFIG_PATH); 
    104104        no_chroot                               = false; 
     
    127127 
    128128                        case 'd': 
    129                                 wi_release(wi_root_path); 
    130                                 wi_root_path = wi_string_init_with_cstring(wi_string_alloc(), optarg); 
     129                                wi_set_root_path(wi_string_with_cstring(optarg)); 
    131130                                break; 
    132131 
     
    242241        /* change root directory */ 
    243242        if(!no_chroot) { 
    244                 if(!wi_change_root()) 
    245                         wi_log_err(WI_STR("Could not change root to %@: %m"), wi_root_path); 
     243                if(!wi_chroot_to_root_path()) 
     244                        wi_log_err(WI_STR("Could not change root directory: %m")); 
    246245        } 
    247246