summaryrefslogtreecommitdiff
path: root/zebra/irdp_packet.c
diff options
context:
space:
mode:
authorpaul <paul>2004-09-24 08:24:42 +0000
committerpaul <paul>2004-09-24 08:24:42 +0000
commit0c0f9112e1530e8e7497cbb75853b9e4da93ea95 (patch)
tree3cbc10ed3495b7813a6921fa417f4987514d3d90 /zebra/irdp_packet.c
parent1603c06ba3ad07b8f9380209a137569abe3700e1 (diff)
2004-09-24 Paul Jakma <paul@dishone.st>
* irdp_{interface,main}.c: lists typedef removal cleanup. update some list loops to LIST_LOOP. some miscellaneous style and indent fixups. (no_ip_irdp_address_preference_cmd) Fix delete of referenced node in loop. * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer to pointer. * if_ioctl{,_solaris}.c: lists typedef removal cleanup. update some list loops to LIST_LOOP.
Diffstat (limited to 'zebra/irdp_packet.c')
-rw-r--r--zebra/irdp_packet.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c
index 8cd3dad6..bb3513a3 100644
--- a/zebra/irdp_packet.c
+++ b/zebra/irdp_packet.c
@@ -178,10 +178,7 @@ void parse_irdp_packet(char *p,
}
}
-int irdp_recvmsg (int sock,
- u_char *buf,
- int size,
- int *ifindex)
+int irdp_recvmsg (int sock, u_char *buf, int size, int *ifindex)
{
struct msghdr msg;
struct iovec iov;
@@ -214,7 +211,7 @@ int irdp_recvmsg (int sock,
return ret;
}
- ifindex = getsockopt_ifindex (AF_INET, &msg);
+ *ifindex = getsockopt_ifindex (AF_INET, &msg);
return ret;
}