Changeset 3961 for neercs/trunk


Ignore:
Timestamp:
Nov 19, 2009, 3:05:32 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Better testing cases for autolock_timeout
Location:
neercs/trunk/src
Files:
2 edited

Legend:

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

    r3960 r3961  
    315315        {
    316316            debug("Autolock is %d\n", screen_list->autolock_timeout);
    317             if(screen_list->autolock_timeout == 0)
     317            if(screen_list->autolock_timeout == 0 ||
     318               screen_list->autolock_timeout == ((long long unsigned int)0) - 1)
    318319            {
    319320                screen_list->autolock_timeout = atoi(option->value) * 1000000;
  • neercs/trunk/src/main.c

    r3960 r3961  
    411411        case 'l':
    412412            screen_list->autolock_timeout = atoi(myoptarg) * 1000000;
    413             /* If value is 0 (non-numeric or 0),
    414              * configuration.c will set it to ((unsigned) -1)*/
     413                if(screen_list->autolock_timeout == 0)
     414                screen_list->autolock_timeout-=1;
    415415            break;
    416416        case 'r':
Note: See TracChangeset for help on using the changeset viewer.