diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-08-03 09:07:30 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-08-03 09:07:30 +0000 |
commit | d053bacb9cbeda00b8e7c6b982258ce7b025b2bd (patch) | |
tree | 183e40d8cce8a6c63fdfe7855ea53d850b4500f0 /src/core/ngx_string.h | |
parent | beaed67996788d153f11881ba93973633d9001b5 (diff) | |
download | nginx-d053bacb9cbeda00b8e7c6b982258ce7b025b2bd.tar.gz nginx-d053bacb9cbeda00b8e7c6b982258ce7b025b2bd.zip |
Added "const" to ngx_memcpy() with NGX_MEMCPY_LIMIT defined.
This fixes warning produced during compilation of the ngx_http_geoip_module
due to const qualifier being discarded.
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r-- | src/core/ngx_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h index fa386ca72..92d246ebc 100644 --- a/src/core/ngx_string.h +++ b/src/core/ngx_string.h @@ -89,7 +89,7 @@ ngx_strlchr(u_char *p, u_char *last, u_char c) #if (NGX_MEMCPY_LIMIT) -void *ngx_memcpy(void *dst, void *src, size_t n); +void *ngx_memcpy(void *dst, const void *src, size_t n); #define ngx_cpymem(dst, src, n) (((u_char *) ngx_memcpy(dst, src, n)) + (n)) #else |