Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 4781:814541b2ec23
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 03 Aug 2012 09:07:30 +0000 |
parents | d620f497c50f |
children | 72e31d88defa |
comparison
equal
deleted
inserted
replaced
4780:b07931054bf1 | 4781:814541b2ec23 |
---|---|
87 #define ngx_memset(buf, c, n) (void) memset(buf, c, n) | 87 #define ngx_memset(buf, c, n) (void) memset(buf, c, n) |
88 | 88 |
89 | 89 |
90 #if (NGX_MEMCPY_LIMIT) | 90 #if (NGX_MEMCPY_LIMIT) |
91 | 91 |
92 void *ngx_memcpy(void *dst, void *src, size_t n); | 92 void *ngx_memcpy(void *dst, const void *src, size_t n); |
93 #define ngx_cpymem(dst, src, n) (((u_char *) ngx_memcpy(dst, src, n)) + (n)) | 93 #define ngx_cpymem(dst, src, n) (((u_char *) ngx_memcpy(dst, src, n)) + (n)) |
94 | 94 |
95 #else | 95 #else |
96 | 96 |
97 /* | 97 /* |