From 74a1b26ffb576205bbdc5e94aeb503306eb6aabc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 2 May 2016 08:21:56 +0200 Subject: -Werror,-Wlogical-not-parentheses Change-Id: I0ed6445964523b17ca5635d4d26cd429ff60c294 --- desktop/unx/source/pagein.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/unx') diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c index 03b26dc00419..181637fc94e4 100644 --- a/desktop/unx/source/pagein.c +++ b/desktop/unx/source/pagein.c @@ -52,7 +52,7 @@ int isRotational(char const * path) struct stat out; int major, minor; char type; - if( !stat( path , &out ) == 0) + if(stat( path , &out ) == -1) return 1; major = major(out.st_dev); minor = 0; /* minor(out.st_dev); only the device itself has a queue */ -- cgit v1.2.3