diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-10-31 19:30:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-10-31 19:30:53 +0000 |
commit | e5e89164b63382cc05e5068b52f020178f1f140b (patch) | |
tree | d531c28d482f102d93d113a7c3635786cc441f5c /wiretap/file.c | |
parent | 24807c0afa951d681b2615d0e50e5b64ba53e3e3 (diff) |
The answer to the question "why pass err to open_routines[i]() if err is
overwritten here?" is probably "because I was cutting-and-pasting text
to insert the error-handling code, and didn't remove the "*err = errno"
from that particular case. Remove it now.
svn path=/trunk/; revision=955
Diffstat (limited to 'wiretap/file.c')
-rw-r--r-- | wiretap/file.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wiretap/file.c b/wiretap/file.c index 742cddcdce..e28ba53336 100644 --- a/wiretap/file.c +++ b/wiretap/file.c @@ -1,6 +1,6 @@ /* file.c * - * $Id: file.c,v 1.27 1999/10/31 17:46:06 gram Exp $ + * $Id: file.c,v 1.28 1999/10/31 19:30:53 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -145,9 +145,6 @@ wtap* wtap_open_offline(const char *filename, int *err) case -1: /* I/O error - give up */ - /* XXX - why pass err to open_routines[i]() if err is - * overwritten here? */ - *err = errno; file_close(wth->fh); free(wth); return NULL; |