Ignore:
Timestamp:
11/30/09 11:03:47 (3 years ago)
Author:
jylam
Message:
  • Moved system stuff (user_path, shell, grab stuff, etc) to struct sys
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/screen_list.c

    r4063 r4071  
    8686    screen_list->comm.socket_path[SOCK_CLIENT] = NULL; 
    8787    screen_list->comm.session_name = NULL; 
    88     screen_list->default_shell = NULL; 
    89     screen_list->user_path = NULL; 
    90     screen_list->to_grab = NULL; 
    91     screen_list->to_start = NULL; 
    92     screen_list->nb_to_grab = 0; 
    93     screen_list->attach = 0; 
    94     screen_list->forceattach = 0; 
     88    screen_list->sys.default_shell = NULL; 
     89    screen_list->sys.user_path = NULL; 
     90    screen_list->sys.to_grab = NULL; 
     91    screen_list->sys.to_start = NULL; 
     92    screen_list->sys.nb_to_grab = 0; 
     93    screen_list->sys.attach = 0; 
     94    screen_list->sys.forceattach = 0; 
    9595    screen_list->need_refresh = 0; 
    9696 
     
    120120    if (user_dir) 
    121121    { 
    122         screen_list->user_path = 
     122        screen_list->sys.user_path = 
    123123        malloc(strlen(user_dir) + strlen("/.neercsrc") + 1); 
    124         sprintf(screen_list->user_path, "%s/%s", user_dir, ".neercsrc"); 
     124        sprintf(screen_list->sys.user_path, "%s/%s", user_dir, ".neercsrc"); 
    125125    } 
    126126     
Note: See TracChangeset for help on using the changeset viewer.