From 8ac0325b2b6ccac39ee1304b31fd4128b9b2d748 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 1 Mar 2006 01:46:52 +0000 Subject: Clean up indentation a bit. In "capture_input_new_file()", don't call the callbacks unless we succeed in opening the new file. Have "capture_info_new_file()" return a success/failure indication. Improve the message logged when we fail to open the new file if we're only opening it for the quick packet counts. We really should put up an alert box and give up on the capture at that point. svn path=/trunk/; revision=17437 --- capture_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_info.h') diff --git a/capture_info.h b/capture_info.h index fefedbf564..107d9ea931 100644 --- a/capture_info.h +++ b/capture_info.h @@ -37,7 +37,7 @@ extern void capture_info_open(const char *iface); /* new file arrived - (eventually close old wtap), open wtap */ -extern void capture_info_new_file(const char *new_filename); +extern gboolean capture_info_new_file(const char *new_filename); /* new packets arrived - read from wtap, count */ extern void capture_info_new_packets(int to_read); -- cgit v1.2.1