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:
stan 2003-04-22 14:07:46 +00:00
parent 09ef0f2495
commit 2edaee0058
1 changed files with 2 additions and 2 deletions

View File

@ -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);