Changed some error exit codes to -1 from 1.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@506 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
09ef0f2495
commit
2edaee0058
|
@ -66,7 +66,7 @@ void Image::ReadJpeg( const char *filename )
|
|||
if ((infile = fopen(filename, "rb" )) == NULL)
|
||||
{
|
||||
Error(( "Can't open %s: %s", filename, strerror(errno)));
|
||||
exit(1);
|
||||
exit( -1 );
|
||||
}
|
||||
jpeg_stdio_src(&cinfo, infile);
|
||||
|
||||
|
@ -117,7 +117,7 @@ void Image::WriteJpeg( const char *filename ) const
|
|||
if ((outfile = fopen(filename, "wb" )) == NULL)
|
||||
{
|
||||
Error(( "Can't open %s: %s", filename, strerror(errno)));
|
||||
exit(1);
|
||||
exit( -1 );
|
||||
}
|
||||
jpeg_stdio_dest(&cinfo, outfile);
|
||||
|
||||
|
|
Loading…
Reference in New Issue