gcc4 again
Igor Sysoev
is at rambler-co.ru
Mon Mar 28 19:22:53 MSD 2005
On Mon, 28 Mar 2005, Leonid Novikov wrote:
> Не собирается. Дохнет на
>
> src/os/unix/ngx_setproctitle.c:92: warning: pointer targets in passing
> argument 2 of ЪЪngx_cpystrnЪЪ differ in signedness
>
> ОС-специфик?
Да, под FreeBSD этот код не собирается.
------------------------------
--- src/os/unix/ngx_setproctitle.c Sat Mar 5 18:38:23 2005
+++ src/os/unix/ngx_setproctitle.c Mon Mar 28 19:21:20 2005
@@ -88,7 +88,7 @@
ngx_os_argv[1] = NULL;
- p = ngx_cpystrn((u_char *) ngx_os_argv[0], "nginx: ",
+ p = ngx_cpystrn((u_char *) ngx_os_argv[0], (u_char *) "nginx: ",
ngx_os_argv_last - ngx_os_argv[0]);
p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p);
------------------------------
Игорь Сысоев
http://sysoev.ru
More information about the nginx-ru
mailing list