Browse Source
			
			
			Fix option parsing to use correct getopt_long
			
			
				master
			
			
		 
		
			
				
					
						
						Alphonse Mariya
					
					8 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 24D4C85E7B4585A9
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
6 additions and 
6 deletions
			 
			
		 
		
			
				- 
					
					
					 
					i3lock.c
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -1375,16 +1375,16 @@ int main(int argc, char *argv[]) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                strcpy(date_format,optarg); | 
					 | 
					 | 
					                strcpy(date_format,optarg); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                break; | 
					 | 
					 | 
					                break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            case 512: | 
					 | 
					 | 
					            case 512: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                // if layout is NULL, do nothing
 | 
					 | 
					 | 
					                verif_text = optarg; | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					                // if not NULL, attempt to display stuff
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // need to code some sane defaults for it
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                keylayout_mode = atoi(optarg); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                break; | 
					 | 
					 | 
					                break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            case 513: | 
					 | 
					 | 
					            case 513: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                verif_text = optarg; | 
					 | 
					 | 
					                wrong_text = optarg; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                break; | 
					 | 
					 | 
					                break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            case 514: | 
					 | 
					 | 
					            case 514: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                wrong_text = optarg; | 
					 | 
					 | 
					                // if layout is NULL, do nothing
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                // if not NULL, attempt to display stuff
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                // need to code some sane defaults for it
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                keylayout_mode = atoi(optarg); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                break; | 
					 | 
					 | 
					                break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            case 515: | 
					 | 
					 | 
					            case 515: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                noinput_text = optarg; | 
					 | 
					 | 
					                noinput_text = optarg; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |