Changeset 3961 for neercs/trunk
- Timestamp:
- Nov 19, 2009, 3:05:32 PM (11 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/configuration.c
r3960 r3961 315 315 { 316 316 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) 318 319 { 319 320 screen_list->autolock_timeout = atoi(option->value) * 1000000; -
neercs/trunk/src/main.c
r3960 r3961 411 411 case 'l': 412 412 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; 415 415 break; 416 416 case 'r':
Note: See TracChangeset
for help on using the changeset viewer.