Use return rather than exit in main().
authorGuy Harris <guy@alum.mit.edu>
Fri, 28 May 2010 01:09:28 +0000 (01:09 -0000)
committerGuy Harris <guy@alum.mit.edu>
Fri, 28 May 2010 01:09:28 +0000 (01:09 -0000)
commit8d949600afae5a913b192a33bfda4ee66ee46a07
treee24bc4f968885383c519979541e82d0235c91b63
parent69d739246716fd744aab79ce6d65919bc6393df9
Use return rather than exit in main().

Return 2 for a capture error - we mainly use 1 for command-line syntax
errors (rather than, say, filter syntax errors or an invalid interface).

Now that TShark exits with an error status when given an invalid capture
filter or invalid interface, check for "error" rather than "success" as
an exit status.

svn path=/trunk/; revision=33006
test/suite-clopts.sh
tshark.c