GraphicsMagick: Return EXIT_FAILURE rather than 1

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.1840.1641942255.2413.graphicsmagick-commit@lists.sourceforge.net>
changeset ad7d22eabbe2 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=ad7d22eabbe2
summary: Return EXIT_FAILURE rather than 1

diffstat:

 coders/png.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a7db52b75ed2 -r ad7d22eabbe2 coders/png.c
--- a/coders/png.c	Tue Jan 11 17:02:55 2022 -0600
+++ b/coders/png.c	Tue Jan 11 17:04:04 2022 -0600
@@ -1,5 +1,5 @@
 /*
-% Copyright (C) 2003-2021 GraphicsMagick Group
+% Copyright (C) 2003-2022 GraphicsMagick Group
 % Copyright (C) 2002 ImageMagick Studio
 % Copyright 1991-1999 E. I. du Pont de Nemours and Company
 %
@@ -1089,7 +1089,7 @@
 #else
   png_longjmp(ping,1);
 #endif
-  SignalHandlerExit(1); /* Avoid GCC warning about non-exit function which does exit */
+  SignalHandlerExit(EXIT_FAILURE); /* Avoid GCC warning about non-exit function which does exit */
 }
 
 static void PNGWarningHandler(png_struct *ping,png_const_charp message)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.