Hi

More cleanup.

- Lauri
>From 9d7c60c5018b5f7543bf15b68815623b604d91ca Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Fri, 8 Jun 2012 14:55:44 +0300
Subject: [PATCH] user: Constify some read-only variables


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/mk_user.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mk_user.c b/src/mk_user.c
index a8bf7c4..509c698 100644
--- a/src/mk_user.c
+++ b/src/mk_user.c
@@ -41,8 +41,8 @@
 int mk_user_init(struct client_session *cs, struct session_request *sr)
 {
     int limit;
-    int offset = 2; /* The user is defined after the '/~' string, so offset = 
2 */
-    int user_len = 255;
+    const int offset = 2; /* The user is defined after the '/~' string, so 
offset = 2 */
+    const int user_len = 255;
     char user[user_len], *user_uri;
     struct passwd *s_user;
 
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to