* [PATCH] tools:thermal:tmon :fix coding style issues
@ 2014-07-11 19:25 Ionut Alexa
0 siblings, 0 replies; only message in thread
From: Ionut Alexa @ 2014-07-11 19:25 UTC (permalink / raw)
To: rui.zhang; +Cc: linux-kernel, Ionut Alexa
From: Ionut Alexa <johnnyalexa@yahoo.com>
Fixed coding style issues.
Signed-off-by: Ionut Alexa <johnnyalexa@yahoo.com>
---
tools/thermal/tmon/tmon.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/thermal/tmon/tmon.c b/tools/thermal/tmon/tmon.c
index 09b7c32..bffd3d9 100644
--- a/tools/thermal/tmon/tmon.c
+++ b/tools/thermal/tmon/tmon.c
@@ -55,7 +55,7 @@ static void start_daemon_mode(void);
pthread_t event_tid;
pthread_mutex_t input_lock;
-void usage()
+void usage(void)
{
printf("Usage: tmon [OPTION...]\n");
printf(" -c, --control cooling device in control\n");
@@ -70,7 +70,7 @@ void usage()
exit(0);
}
-void version()
+void version(void)
{
printf("TMON version %s\n", VERSION);
exit(EXIT_SUCCESS);
@@ -340,11 +340,12 @@ int main(int argc, char **argv)
return 0;
}
-static void start_daemon_mode()
+static void start_daemon_mode(void)
{
daemon_mode = 1;
/* fork */
pid_t sid, pid = fork();
+
if (pid < 0) {
exit(EXIT_FAILURE);
} else if (pid > 0)
--
1.7.10.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-11 19:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-11 19:25 [PATCH] tools:thermal:tmon :fix coding style issues Ionut Alexa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®