2 static const char rs_errortype_map
[][9] = {
3 [ RS_ET_OWN
] = "rocksock",
4 [ RS_ET_SYS
] = "system",
5 [ RS_ET_GAI
] = "gai/dns",
9 const char* rocksock_strerror_type(rocksock
*sock
) {
10 if(sock
->lasterror
.errortype
< RS_ET_MAX
)
11 return rs_errortype_map
[sock
->lasterror
.errortype
];