mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	- No, it should be || not &&
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@210 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									3c5f8883e8
								
							
						
					
					
						commit
						b55d068325
					
				@ -218,7 +218,7 @@ dev_is_parport(int fd)
 | 
				
			|||||||
       int m;
 | 
					       int m;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       if ((fstat(fd, &st) == -1) ||
 | 
					       if ((fstat(fd, &st) == -1) ||
 | 
				
			||||||
	   ((st.st_mode & S_IFMT) != S_IFCHR) &&
 | 
						   ((st.st_mode & S_IFMT) != S_IFCHR) ||
 | 
				
			||||||
	   (ioctl(fd, PPGETMODE, &m) == -1))
 | 
						   (ioctl(fd, PPGETMODE, &m) == -1))
 | 
				
			||||||
	 return(0);
 | 
						 return(0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -234,7 +234,7 @@ dev_is_parport(int fd)
 | 
				
			|||||||
       unsigned char c;
 | 
					       unsigned char c;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       if ((fstat(fd, &st) == -1) ||
 | 
					       if ((fstat(fd, &st) == -1) ||
 | 
				
			||||||
	   ((st.st_mode & S_IFMT) != S_IFCHR) &&
 | 
						   ((st.st_mode & S_IFMT) != S_IFCHR) ||
 | 
				
			||||||
	   (ioctl(fd, PPISSTATUS, &c) == -1))
 | 
						   (ioctl(fd, PPISSTATUS, &c) == -1))
 | 
				
			||||||
	 return(0);
 | 
						 return(0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user