From b55d068325a6e1cc2b0453c6c4eb99fdcb2cc331 Mon Sep 17 00:00:00 2001 From: Diane Bruce <db@db.net> Date: Wed, 26 Jul 2006 14:24:27 +0000 Subject: [PATCH] - No, it should be || not && git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@210 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- ptt_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptt_unix.c b/ptt_unix.c index deeaced4d..4f4adda3d 100644 --- a/ptt_unix.c +++ b/ptt_unix.c @@ -218,7 +218,7 @@ dev_is_parport(int fd) int m; if ((fstat(fd, &st) == -1) || - ((st.st_mode & S_IFMT) != S_IFCHR) && + ((st.st_mode & S_IFMT) != S_IFCHR) || (ioctl(fd, PPGETMODE, &m) == -1)) return(0); @@ -234,7 +234,7 @@ dev_is_parport(int fd) unsigned char c; if ((fstat(fd, &st) == -1) || - ((st.st_mode & S_IFMT) != S_IFCHR) && + ((st.st_mode & S_IFMT) != S_IFCHR) || (ioctl(fd, PPISSTATUS, &c) == -1)) return(0);