Changeset 3960 for neercs/trunk


Ignore:
Timestamp:
Nov 19, 2009, 2:59:30 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Removed useless signed/unsigned test
Location:
neercs/trunk/src
Files:
2 edited

Legend:

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

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

    r3959 r3960  
    411411        case 'l':
    412412            screen_list->autolock_timeout = atoi(myoptarg) * 1000000;
    413                 debug("Command line autolock : %d\n", screen_list->autolock_timeout);
     413            /* If value is 0 (non-numeric or 0),
     414             * configuration.c will set it to ((unsigned) -1)*/
    414415            break;
    415416        case 'r':
Note: See TracChangeset for help on using the changeset viewer.