diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2022-11-30 18:01:53 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2022-11-30 18:01:53 +0300 |
commit | a77cef0995fb29af6602dcdeb560755443cb2cca (patch) | |
tree | 7bb1cfe2b2dd48c8747630154895ae2c109cda80 /src/core/ngx_proxy_protocol.c | |
parent | e8da064e0d16527a994ec7e3b2937363804b8e30 (diff) | |
download | nginx-a77cef0995fb29af6602dcdeb560755443cb2cca.tar.gz nginx-a77cef0995fb29af6602dcdeb560755443cb2cca.zip |
Removed casts from ngx_memcmp() macro.
Casts are believed to be not needed, since memcmp() has "const void *"
arguments since introduction of the "void" type in C89. And on pre-C89
platforms nginx is unlikely to compile without warnings anyway, as there
are no casts in memcpy() and memmove() calls.
These casts were added in 1648:89a47f19b9ec without any details on why they
were added, and Igor does not remember details either. The most plausible
explanation is that they were copied from ngx_strcmp() and were not really
needed even at that time.
Prodded by Alejandro Colomar.
Diffstat (limited to 'src/core/ngx_proxy_protocol.c')
0 files changed, 0 insertions, 0 deletions