Browse code

sctp: fixes for FreeBSD 10.1 compile error and 2 warnings

- missing argument for macro SCTP_EV_REMOTE_ERROR() and two extraneous
parentheses

(cherry picked from commit b06626e811edae93c5f28dc132eca7542a6dcc97)
(cherry picked from commit c2b03863299b490346735e8b2501098117a42310)

Mikko Lehto authored on 10/02/2015 08:57:31 • Daniel-Constantin Mierla committed on 18/12/2015 20:26:57
Showing 1 changed files
... ...
@@ -2397,7 +2397,7 @@ static int sctp_handle_notification(struct socket_info* si,
2397 2397
 		case SCTP_SENDER_DRY_EVENT:
2398 2398
 			ERR_LEN_TOO_SMALL(len, sizeof(struct sctp_sender_dry_event),
2399 2399
 								si, su, "SCTP_SENDER_DRY_EVENT");
2400
-			SCTP_EV_REMOTE_ERROR(&si->address, si->port_no, su);
2400
+			SCTP_EV_REMOTE_ERROR(&si->address, si->port_no, su, 0);
2401 2401
 			SNOT("sctp notification from %s on %.*s:%d: "
2402 2402
 					"SCTP_SENDER_DRY_EVENT on %d\n",
2403 2403
 					su2a(su, sizeof(*su)), si->name.len, si->name.s,
... ...
@@ -2659,7 +2659,7 @@ again:
2659 2659
 			goto again;
2660 2660
 		}
2661 2661
 #elif defined __OS_freebsd
2662
-		if ((errno==ENOENT)){
2662
+		if (errno==ENOENT){
2663 2663
 			/* it didn't work, no retrying */
2664 2664
 			WARN("unexpected sendmsg() failure (ENOENT),"
2665 2665
 					" assoc_id %d\n", sinfo->sinfo_assoc_id);
... ...
@@ -2826,7 +2826,7 @@ again:
2826 2826
 			goto again;
2827 2827
 		}
2828 2828
 #elif defined __OS_freebsd
2829
-		if ((errno==ENOENT)){
2829
+		if (errno==ENOENT){
2830 2830
 			/* it didn't work, no retrying */
2831 2831
 			WARN("sctp sendmsg: unexpected sendmsg() failure (ENOENT),"
2832 2832
 					" assoc_id %d\n", assoc_id);