From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/daemons clurmtabd.c main.c
Date: 19 Sep 2007 09:54:19 -0000 [thread overview]
Message-ID: <20070919095419.19259.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-09-19 09:54:19
Modified files:
rgmanager/src/daemons: clurmtabd.c main.c
Log message:
Fix more warnings when building with -O2 and also fix get_rmtabd_loglevel
to actually do what is supposed to.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/clurmtabd.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/main.c.diff?cvsroot=cluster&r1=1.43&r2=1.44
--- cluster/rgmanager/src/daemons/clurmtabd.c 2005/01/25 20:18:29 1.3
+++ cluster/rgmanager/src/daemons/clurmtabd.c 2007/09/19 09:54:19 1.4
@@ -73,7 +73,7 @@
#if 0
static inline int __get_int_param(char *str, int *val, int dflt);
#endif
-static int get_rmtabd_loglevel(int *level);
+static int get_rmtabd_loglevel(void);
static int get_rmtabd_pollinterval(int *interval);
static void rmtabd_reconfigure(void);
@@ -378,7 +378,7 @@
* Gets the loglevel of rmtabd
*/
static int
-get_rmtabd_loglevel(int *level)
+get_rmtabd_loglevel(void)
{
#if 0
return __get_int_param(LOGLEVEL_STR, level, LOG_DEFAULT);
@@ -412,7 +412,7 @@
/* loglevel */
old_level = clu_get_loglevel();
- get_rmtabd_loglevel(&level);
+ level = get_rmtabd_loglevel();
if (old_level != level) {
if (clu_set_loglevel(level) == -1)
--- cluster/rgmanager/src/daemons/main.c 2007/08/21 18:18:37 1.43
+++ cluster/rgmanager/src/daemons/main.c 2007/09/19 09:54:19 1.44
@@ -659,7 +659,7 @@
int
event_loop(msgctx_t *localctx, msgctx_t *clusterctx)
{
- int n, max, ret;
+ int n = 0, max, ret;
fd_set rfds;
msgctx_t *newctx;
struct timeval tv;
reply other threads:[~2007-09-19 9:54 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=20070919095419.19259.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/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;
as well as URLs for NNTP newsgroup(s).