From 74dd8ab0279a45ac3537b3d23e5a55f05e03e51a Mon Sep 17 00:00:00 2001 From: abishai Date: Mon, 6 Feb 2017 09:57:22 +0300 Subject: [PATCH] make clang happy take two --- src/zm_monitor.cpp | 2 +- src/zmf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index dd76e7845..e25649cff 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -222,7 +222,7 @@ bool Monitor::MonitorLink::disconnect() } } - if ( shmdt( mem_ptr ) < (void *)0 ) + if ( shmdt( mem_ptr ) < 0 ) { Debug( 3, "Can't shmdt: %s", strerror(errno) ); return( false ); diff --git a/src/zmf.cpp b/src/zmf.cpp index cf1810076..addf2f053 100644 --- a/src/zmf.cpp +++ b/src/zmf.cpp @@ -331,7 +331,7 @@ int main( int argc, char *argv[] ) Debug( 1, "Got image, writing to %s", path ); FILE *fd = 0; - if ( (fd = fopen( path, "w" )) < (void *)0 ) + if ( (fd = fopen( path, "w" )) == NULL ) { Error( "Can't fopen '%s': %s", path, strerror(errno) ); exit( -1 );