Commit ce4894b1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the VTCP version of the text format buffer sizes.

parent 8c679357
......@@ -156,8 +156,8 @@ ses_vsl_socket(struct sess *sp, const char *lsockname)
{
struct sockaddr_storage ss;
socklen_t sl;
char laddr[ADDR_BUFSIZE];
char lport[PORT_BUFSIZE];
char laddr[VTCP_ADDRBUFSIZE];
char lport[VTCP_PORTBUFSIZE];
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
AN(lsockname);
......
......@@ -76,16 +76,6 @@ struct cli;
*/
#define __state_variable__(xxx) /*lint -esym(838,xxx) */
/**********************************************************************
* NI_MAXHOST and less so NI_MAXSERV, are ridiculously large for numeric
* representations of TCP/IP socket addresses, so we use our own.
* <netinet/in6.h>::INET6_ADDRSTRLEN is 46
*/
#define ADDR_BUFSIZE 48
#define PORT_BUFSIZE 8
/**********************************************************************/
/* Name of transient storage */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment