[CLEANUP] Remove unneeded chars allocation

Some arrays used to log addresses add some more bytes for ports but this space
is never used.
This commit is contained in:
Cyril Bont 2010-11-01 19:26:02 +01:00 committed by Willy Tarreau
parent b40dc94a9a
commit acd7d63ff9
3 changed files with 4 additions and 4 deletions

View File

@ -2884,7 +2884,7 @@ int stats_dump_sess_to_buffer(struct session *s, struct buffer *rep)
/* and start from where we stopped */
while (s->data_ctx.sess.bref.ref != &sessions) {
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
char pn[INET6_ADDRSTRLEN];
struct session *curr_sess;
curr_sess = LIST_ELEM(s->data_ctx.sess.bref.ref, struct session *, list);

View File

@ -318,7 +318,7 @@ void send_log(struct proxy *p, int level, const char *message, ...)
*/
void tcp_sess_log(struct session *s)
{
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
char pn[INET6_ADDRSTRLEN];
struct proxy *fe = s->fe;
struct proxy *be = s->be;
struct proxy *prx_log;

View File

@ -846,7 +846,7 @@ struct pool_head *pool2_capture;
void http_sess_clflog(struct session *s)
{
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
char pn[INET6_ADDRSTRLEN];
struct proxy *fe = s->fe;
struct proxy *be = s->be;
struct proxy *prx_log;
@ -1072,7 +1072,7 @@ trunc:
*/
void http_sess_log(struct session *s)
{
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
char pn[INET6_ADDRSTRLEN];
struct proxy *fe = s->fe;
struct proxy *be = s->be;
struct proxy *prx_log;