From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [tabled patch 1/3] make a const struct static
Date: Thu, 5 Aug 2010 21:40:17 -0600 [thread overview]
Message-ID: <20100805214017.4cd39974@lembas.zaitcev.lan> (raw)
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
---
server/server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 93b990f68e5c2c652759a2db8af049d172b8489c
Author: Pete Zaitcev <zaitcev@yahoo.com>
Date: Thu Aug 5 20:33:21 2010 -0600
Make initialized struct a static const.
diff --git a/server/server.c b/server/server.c
index 0d6316d..814afec 100644
--- a/server/server.c
+++ b/server/server.c
@@ -1413,7 +1413,7 @@ err_out:
static void add_chkpt_timer(void)
{
- struct timeval tv = { TABLED_CHKPT_SEC, 0 };
+ static const struct timeval tv = { TABLED_CHKPT_SEC, 0 };
if (evtimer_add(&tabled_srv.chkpt_timer, &tv) < 0)
applog(LOG_WARNING, "unable to add checkpoint timer");
next reply other threads:[~2010-08-06 3:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 3:40 Pete Zaitcev [this message]
2010-08-10 19:13 ` [tabled patch 1/3] make a const struct static Jeff Garzik
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=20100805214017.4cd39974@lembas.zaitcev.lan \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.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 read-only IMAP folder(s) and NNTP newsgroup(s).