Remove 'currentdevice' global

This commit is contained in:
Arnout Engelen
2013-05-12 17:42:43 +00:00
parent 6cdf24bf71
commit bb2a4e0480
2 changed files with 4 additions and 7 deletions

View File

@@ -156,8 +156,8 @@ int main (int argc, char** argv)
handle * current_handle = handles;
while (current_handle != NULL)
{
userdata->device = current_handle->devicename;
userdata->sa_family = AF_UNSPEC;
currentdevice = current_handle->devicename;
int retval = dp_dispatch (current_handle->content, -1, (u_char *)userdata, sizeof (struct dpargs));
if (retval < 0)
{