projects
/
profile
/
ivi
/
OpenAVB.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32e56d
)
Cleanup mrpctl to eliminate compile warnings
author
intel-ethernet
<eric_mann@mail.intel.com>
Tue, 13 Nov 2012 00:03:24 +0000
(16:03 -0800)
committer
intel-ethernet
<eric_mann@mail.intel.com>
Tue, 13 Nov 2012 00:03:24 +0000
(16:03 -0800)
daemons/mrpd/mrpctl.c
patch
|
blob
|
history
diff --git
a/daemons/mrpd/mrpctl.c
b/daemons/mrpd/mrpctl.c
index
d690cb3
..
888162e
100644
(file)
--- a/
daemons/mrpd/mrpctl.c
+++ b/
daemons/mrpd/mrpctl.c
@@
-66,7
+66,6
@@
static const char *version_str =
int
init_local_ctl( void ) {
struct sockaddr_in addr;
- socklen_t addr_len;
int sock_fd = -1;
int sock_flags;
@@
-79,7
+78,6
@@
init_local_ctl( void ) {
addr.sin_family = AF_INET;
addr.sin_port = htons(MRPD_PORT_DEFAULT);
inet_aton("127.0.0.1", &addr.sin_addr);
- addr_len = sizeof(addr);
/* rc = bind(sock_fd, (struct sockaddr *)&addr, addr_len); */
@@
-115,6
+113,10
@@
process_ctl_msg(char *buf, int buflen, struct sockaddr_in *client) {
* V-- - LV a VID (VLAN ID)
*/
+ /* Unused parameters */
+ (void)buflen;
+ (void)client;
+
/* XXX */
if (buf[1] == ':')
printf("?? RESP:\n%s", buf);