mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ionut Alexa <ionut.m.alexa@gmail.com>
To: rui.zhang@intel.com
Cc: linux-kernel@vger.kernel.org, Ionut Alexa <johnnyalexa@yahoo.com>
Subject: [PATCH] tools:thermal:tmon :fix coding style issues
Date: Fri, 11 Jul 2014 22:25:47 +0300	[thread overview]
Message-ID: <1405106747-7996-1-git-send-email-ionut.m.alexa@gmail.com> (raw)

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


                 reply	other threads:[~2014-07-11 19:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405106747-7996-1-git-send-email-ionut.m.alexa@gmail.com \
    --to=ionut.m.alexa@gmail.com \
    --cc=johnnyalexa@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®