- - Lauri
>From b2b9c8d5b3fce3a27f47d93e142768b22197b737 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Mon, 21 May 2012 20:09:27 +0300 Subject: [PATCH 12/13] palm: Constify some read-only variables
Signed-off-by: Lauri Kasanen <[email protected]> --- plugins/palm/palm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/palm/palm.c b/plugins/palm/palm.c index f42776e..5e1f68f 100644 --- a/plugins/palm/palm.c +++ b/plugins/palm/palm.c @@ -402,11 +402,11 @@ static int mk_palm_send_end_chunk(int socket, struct mk_palm_request *pr) static int mk_palm_cgi_status(char *data, struct session_request *sr) { int status; - int status_len = 3; + const int status_len = 3; int offset = 0; - int field_len = 8; + const int field_len = 8; char buffer[4]; - char field[] = "Status: "; + const char field[] = "Status: "; if (strlen(data) <= (field_len + status_len)) { return 0; -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
