[tabled patch 1/3] make a const struct static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 93b990f68e5c2c652759a2db8af049d172b8489c
Author: Pete Zaitcev <zaitcev@xxxxxxxxx>
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");
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux