Return error when failing in main()

This commit is contained in:
joerg 2012-08-10 18:03:49 +00:00
parent cde07bc64c
commit 63305e1ac0
2 changed files with 14 additions and 5 deletions

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.8 2006/09/28 20:52:23 minskim Exp $
$NetBSD: distinfo,v 1.9 2012/08/10 18:03:49 joerg Exp $
SHA1 (xscavenger-1.4.4.tgz) = d9ef34d2ec1a9dfeca398004725cae4878bf9f2e
RMD160 (xscavenger-1.4.4.tgz) = e410c86dbf406243cfac3d0f81ea83e79cdeab32
Size (xscavenger-1.4.4.tgz) = 193346 bytes
SHA1 (patch-aa) = 8f4ef6a4fe58b5d4a395426b38bfc848d63ec582
SHA1 (patch-ab) = aba4113a688f295a1a318c07be607cedecd1fb9a
SHA1 (patch-ac) = dd92d176417b90dc2c8330cc9c6f222692133219
SHA1 (patch-ac) = 5e02fc270353ebb7099a9c897c602adb765a82d4
SHA1 (patch-ad) = ec134bb41baba7a68b1c05434ade23b448e17517

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ac,v 1.2 2005/11/03 22:03:18 rillig Exp $
$NetBSD: patch-ac,v 1.3 2012/08/10 18:03:49 joerg Exp $
--- src/scav.c.orig 2002-02-10 01:35:36.000000000 +0100
+++ src/scav.c 2005-09-08 14:53:03.000000000 +0200
--- src/scav.c.orig 2002-02-10 00:35:36.000000000 +0000
+++ src/scav.c
@@ -240,17 +240,18 @@ void *configtab[]=
@ -45,3 +45,12 @@ $NetBSD: patch-ac,v 1.2 2005/11/03 22:03:18 rillig Exp $
size=readlong();
if(size&1) size++;
if(type==BMHD)
@@ -1572,7 +1573,7 @@ uchar *err;
if(err)
{
puts(err);
- return;
+ return 1;
}
createinout(i);
}