Fix type mismatches and remove unused variables in nap plugin

Should just fix compiler warnings.
This commit is contained in:
Kevin Easton
2015-09-10 17:00:09 +10:00
parent 6d6717e56e
commit e0bdc609c1
4 changed files with 31 additions and 41 deletions

View File

@@ -108,7 +108,7 @@ BUILT_IN_FUNCTION(func_connected)
{
if (nap_socket > -1)
{
int len;
socklen_t len;
struct sockaddr_in name;
len = sizeof (name);
if (getpeername(nap_socket, (struct sockaddr *)&name, &len))