aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-01-05 22:27:25 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-01-05 22:27:25 +0000
commit4f3c493e1d2fb30c00be9d9135dad13a7003fea5 (patch)
tree3e5788d432456b4289c58fa07ac1d41ee4f03bb4 /dumpcap.c
parenteae47c79c1a8247469e2783d242ec603622dbe2f (diff)
cleanup of exit_main() declaration
svn path=/trunk/; revision=16960
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 4e7052e471..a0a66296d2 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -84,6 +84,12 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level,
capture_options global_capture_opts;
capture_options *capture_opts = &global_capture_opts;
+#if __GNUC__ >= 2
+void exit_main(int err) __attribute__ ((noreturn));
+#else
+void exit_main(int err);
+#endif
+
static void
@@ -210,12 +216,7 @@ BOOL WINAPI ConsoleCtrlHandlerRoutine(DWORD dwCtrlType)
}
#endif
-#if __GNUC__ >= 2
-void exit_main(int err) __attribute__ ((noreturn));
void exit_main(int err)
-#else
-void exit_main(int err)
-#endif
{
#ifdef _WIN32
/* Shutdown windows sockets */