[tracker] Add comment in signal handlers to clear up that falling through in switch is on purpose.



commit 34f4aeca69042b1b00e793a7eb7c931de4625b43
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 4 15:46:16 2010 +0200

    Add comment in signal handlers to clear up that falling through in switch is on purpose.

 src/miners/fs/tracker-main.c       |    1 +
 src/tracker-extract/tracker-main.c |    2 ++
 src/tracker-store/tracker-main.c   |    1 +
 src/tracker-utils/tracker-status.c |    1 +
 4 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index f661570..6246f2e 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -139,6 +139,7 @@ signal_handler (int signo)
 		in_loop = TRUE;
 		g_main_loop_quit (main_loop);
 
+		/* Fall through */
 	default:
 		if (g_strsignal (signo)) {
 			g_print ("\n");
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index a305974..b31031d 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -201,6 +201,8 @@ signal_handler (int signo)
 		in_loop = TRUE;
 		disable_shutdown = FALSE;
 		quit_timeout_cb (NULL);
+
+		/* Fall through */
 	default:
 		if (g_strsignal (signo)) {
 			g_print ("\n");
diff --git a/src/tracker-store/tracker-main.c b/src/tracker-store/tracker-main.c
index 0c3ddcf..d18b99d 100644
--- a/src/tracker-store/tracker-main.c
+++ b/src/tracker-store/tracker-main.c
@@ -179,6 +179,7 @@ signal_handler (int signo)
 		in_loop = TRUE;
 		shutdown ();
 
+		/* Fall through */
 	default:
 		if (g_strsignal (signo)) {
 			g_print ("\n");
diff --git a/src/tracker-utils/tracker-status.c b/src/tracker-utils/tracker-status.c
index 69ecf1b..24dae08 100644
--- a/src/tracker-utils/tracker-status.c
+++ b/src/tracker-utils/tracker-status.c
@@ -135,6 +135,7 @@ signal_handler (int signo)
 		in_loop = TRUE;
 		g_main_loop_quit (main_loop);
 
+		/* Fall through */
 	default:
 		if (g_strsignal (signo)) {
 			g_print ("\n");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]