--- ngx_string.c	2008-12-07 11:20:10.000000000 +0530
+++ /tmp/nginx-0.7.24/src/core/ngx_string.c	2008-11-10 20:50:59.000000000 +0530
@@ -13,7 +13,7 @@
 
 
 void
-ngx_strlow(u_char *dst, const u_char *src, size_t n)
+ngx_strlow(u_char *dst, u_char *src, size_t n)
 {
     while (n--) {
         *dst = ngx_tolower(*src);
@@ -24,7 +24,7 @@
 
 
 u_char *
-ngx_cpystrn(u_char *dst, const u_char *src, size_t n)
+ngx_cpystrn(u_char *dst, u_char *src, size_t n)
 {
     if (n == 0) {
         return dst;
@@ -45,7 +45,7 @@
 
 
 u_char *
-ngx_pstrdup(ngx_pool_t *pool, const ngx_str_t *src)
+ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src)
 {
     u_char  *dst;
 
@@ -549,7 +549,7 @@
  */
 
 ngx_int_t
-ngx_strcasecmp(const u_char *s1, const u_char *s2)
+ngx_strcasecmp(u_char *s1, u_char *s2)
 {
     ngx_uint_t  c1, c2;
 
@@ -575,7 +575,7 @@
 
 
 ngx_int_t
-ngx_strncasecmp(const u_char *s1, const u_char *s2, size_t n)
+ngx_strncasecmp(u_char *s1, u_char *s2, size_t n)
 {
     ngx_uint_t  c1, c2;
 
@@ -693,7 +693,7 @@
 
 
 ngx_int_t
-ngx_rstrncmp(const u_char *s1, const u_char *s2, size_t n)
+ngx_rstrncmp(u_char *s1, u_char *s2, size_t n)
 {
     if (n == 0) {
         return 0;
@@ -716,7 +716,7 @@
 
 
 ngx_int_t
-ngx_rstrncasecmp(const u_char *s1, const u_char *s2, size_t n)
+ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n)
 {
     u_char  c1, c2;
 
@@ -751,7 +751,7 @@
 
 
 ngx_int_t
-ngx_memn2cmp(const u_char *s1, const u_char *s2, size_t n1, size_t n2)
+ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2)
 {
     size_t     n;
     ngx_int_t  m, z;
@@ -776,7 +776,7 @@
 
 
 ngx_int_t
-ngx_atoi(const u_char *line, size_t n)
+ngx_atoi(u_char *line, size_t n)
 {
     ngx_int_t  value;
 
@@ -802,7 +802,7 @@
 
 
 ssize_t
-ngx_atosz(const u_char *line, size_t n)
+ngx_atosz(u_char *line, size_t n)
 {
     ssize_t  value;
 
@@ -828,7 +828,7 @@
 
 
 off_t
-ngx_atoof(const u_char *line, size_t n)
+ngx_atoof(u_char *line, size_t n)
 {
     off_t  value;
 
@@ -854,7 +854,7 @@
 
 
 time_t
-ngx_atotm(const u_char *line, size_t n)
+ngx_atotm(u_char *line, size_t n)
 {
     time_t  value;
 
@@ -880,7 +880,7 @@
 
 
 ngx_int_t
-ngx_hextoi(const u_char *line, size_t n)
+ngx_hextoi(u_char *line, size_t n)
 {
     u_char     c, ch;
     ngx_int_t  value;
@@ -917,7 +917,7 @@
 
 
 u_char *
-ngx_hex_dump(u_char *dst, const u_char *src, size_t len)
+ngx_hex_dump(u_char *dst, u_char *src, size_t len)
 {
     static u_char  hex[] = "0123456789abcdef";
 
@@ -931,7 +931,7 @@
 
 
 void
-ngx_encode_base64(ngx_str_t *dst, const ngx_str_t *src)
+ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src)
 {
     u_char         *d, *s;
     size_t          len;
@@ -972,7 +972,7 @@
 
 
 ngx_int_t
-ngx_decode_base64(ngx_str_t *dst, const ngx_str_t *src)
+ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src)
 {
     size_t          len;
     u_char         *d, *s;
@@ -1178,7 +1178,7 @@
 
 
 uintptr_t
-ngx_escape_uri(u_char *dst, const u_char *src, size_t size, ngx_uint_t type)
+ngx_escape_uri(u_char *dst, u_char *src, size_t size, ngx_uint_t type)
 {
     ngx_uint_t      i, n;
     uint32_t       *escape;
@@ -1455,7 +1455,7 @@
 
 
 uintptr_t
-ngx_escape_html(u_char *dst, const u_char *src, size_t size)
+ngx_escape_html(u_char *dst, u_char *src, size_t size)
 {
     u_char      ch;
     ngx_uint_t  i, len;
@@ -1551,7 +1551,7 @@
 #if (NGX_MEMCPY_LIMIT)
 
 void *
-ngx_memcpy(void *dst, const void *src, size_t n)
+ngx_memcpy(void *dst, void *src, size_t n)
 {
     if (n > NGX_MEMCPY_LIMIT) {
         ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "memcpy %uz bytes", n);
