diff --git a/ChangeLog b/ChangeLog index 96c9ec2..b4b47a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ >> Squidview history: + +0.86 February 2017 +- fix clang compiler warning, thanks http://people.freebsd.org/~danilo/ 0.85 Janurary 2017 - another result code, thanks Yuri Voinov diff --git a/configure b/configure index 8e134a4..b3ca6ec 100755 --- a/configure +++ b/configure @@ -2662,7 +2662,7 @@ # Define the identity of the package. PACKAGE=squidview - VERSION=0.85 + VERSION=0.86 cat >>confdefs.h <<_ACEOF diff --git a/configure.in b/configure.in index e4c13a7..10b517d 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ AC_INIT(squidview.cpp) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(squidview,0.85) +AM_INIT_AUTOMAKE(squidview,0.86) AC_PROG_CXX AC_PROG_INSTALL diff --git a/squidview.cpp b/squidview.cpp index 763666c..2031ec3 100644 --- a/squidview.cpp +++ b/squidview.cpp @@ -1002,7 +1002,7 @@ FILE* fOutput; fOutput = fopen (sWordFile.c_str(), "w"); - if (fOutput <= 0) + if (fOutput == NULL) return 0; iIndex = 0; @@ -2168,7 +2168,7 @@ { fOutput = fopen (string (sPathToFiles + "/" + sRepFileName) .c_str(), "w"); - if (fOutput == 0) + if (fOutput == NULL) { sStatusMessage = "Could not write to " + sRepFileName; return; @@ -3830,7 +3830,7 @@ bSave = true; bError = false; fIO = fopen (sSetFileName.c_str(), "w"); - if (fIO == 0) + if (fIO == NULL) { sStatusMessage = string ("Could not write to ") + sSetFileName; return;