/*
- * Copyright (c) 2009 Nicira Networks.
+ * Copyright (c) 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/* Retrieve socket's port number. */
sin_len = sizeof sin;
- if (getsockname(fd, &sin, &sin_len) < 0) {
+ if (getsockname(fd, (struct sockaddr *)&sin, &sin_len) < 0) {
ovs_fatal(errno, "failed to read TCP socket name");
}
if (sin_len != sizeof sin || sin.sin_family != AF_INET) {
}
int
-main(int argc UNUSED, char *argv[])
+main(int argc OVS_UNUSED, char *argv[])
{
set_program_name(argv[0]);
time_init();