Repository :
http://git.fedorahosted.org/git/?p=conga-luci-1stgen.git
On branch : RHEL5-active
---------------------------------------------------------------
commit 06e5580625b7d9304585a6f07da5cf2564621041
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Wed Aug 15 16:54:06 2012 +0200
ricci: daemon_init: remove unused assignment
Origin of the change:
http://git.fedorahosted.org/cgit/cluster.git/commit/?h=STABLE32&id=06...
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
---------------------------------------------------------------
ricci/common/daemon_init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ricci/common/daemon_init.c b/ricci/common/daemon_init.c
index 11a3a32..5737249 100644
--- a/ricci/common/daemon_init.c
+++ b/ricci/common/daemon_init.c
@@ -110,11 +110,11 @@ check_pid_valid(pid_t pid, char *prog)
/*
* Check to see if this is the same executable.
*/
- if ((s = strstr(proc_cmdline, prog)) == NULL) {
+ if (strstr(proc_cmdline, prog) == NULL) {
return 0;
- } else {
- return 1;
}
+
+ return 1;
}