Ignore:
Timestamp:
Nov 29, 2009, 1:41:20 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Fix build
File:
1 edited

Legend:

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

    r4060 r4061  
    130130
    131131
    132     if (strlen(screen_list->lockmsg))
     132    if (strlen(screen_list->lock.lockmsg))
    133133    {
    134134        x = ((caca_get_canvas_width(cv) - w) / 2) +
    135             (strlen(screen_list->lockmsg));
     135            (strlen(screen_list->lock.lockmsg));
    136136        y += 2;
    137137        caca_set_color_ansi(cv, CACA_RED, CACA_BLUE);
    138         caca_printf(cv, x, y, "Error : %s", screen_list->lockmsg);
     138        caca_printf(cv, x, y, "Error : %s", screen_list->lock.lockmsg);
    139139    }
    140140#endif
     
    197197        perror("failed to look up hostname");
    198198        ret = pam_end(pamh, PAM_ABORT);
    199         sprintf(screen_list->lockmsg, "Can't get hostname");
     199        sprintf(screen_list->lock.lockmsg, "Can't get hostname");
    200200        pam_end(pamh, PAM_SUCCESS);
    201201        return 0;
     
    205205    if (ret != PAM_SUCCESS)
    206206    {
    207         sprintf(screen_list->lockmsg, "Can't set hostname");
     207        sprintf(screen_list->lock.lockmsg, "Can't set hostname");
    208208        pam_end(pamh, PAM_SUCCESS);
    209209        return 0;
     
    213213    if (ret != PAM_SUCCESS)
    214214    {
    215         sprintf(screen_list->lockmsg, "Can't authenticate");
     215        sprintf(screen_list->lock.lockmsg, "Can't authenticate");
    216216        pam_end(pamh, PAM_SUCCESS);
    217217        return 0;
Note: See TracChangeset for help on using the changeset viewer.