comparison dbutil.c @ 1028:5ad81aa19c2d fastopen

fallback for old glibc and fastopen memset rather than = {0} initialiser
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Feb 2015 22:33:51 +0800
parents daf21fd50abf
children 1fff5d7163f6
comparison
equal deleted inserted replaced
1027:daf21fd50abf 1028:5ad81aa19c2d
1068 1068
1069 break; /* Success. Treated the same as EINPROGRESS */ 1069 break; /* Success. Treated the same as EINPROGRESS */
1070 #endif 1070 #endif
1071 #else 1071 #else
1072 { 1072 {
1073 struct msghdr message = {0}; 1073 struct msghdr message;
1074 int flags; 1074 int flags;
1075 int res; 1075 int res;
1076 memset(&message, 0x0, sizeof(message));
1076 message.msg_name = r->ai_addr; 1077 message.msg_name = r->ai_addr;
1077 message.msg_namelen = r->ai_addrlen; 1078 message.msg_namelen = r->ai_addrlen;
1078 1079
1079 if (c->writequeue) { 1080 if (c->writequeue) {
1080 int iovlen; /* Linux msg_iovlen is a size_t */ 1081 int iovlen; /* Linux msg_iovlen is a size_t */