Skip to content
Snippets Groups Projects
Commit 83af4899 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Get it compiling under Linux.

While there, remove some trailing white spaces.
parent 4bbe0dba
No related branches found
No related tags found
No related merge requests found
...@@ -2319,7 +2319,7 @@ static int check_sctp_event(struct sctp_event_expr *expr, ...@@ -2319,7 +2319,7 @@ static int check_sctp_event(struct sctp_event_expr *expr,
} }
#endif #endif
#ifdef SCTP_EVENT #ifdef SCTP_EVENTS
static int check_sctp_event_subscribe(struct sctp_event_subscribe_expr *expr, static int check_sctp_event_subscribe(struct sctp_event_subscribe_expr *expr,
struct sctp_event_subscribe *sctp_events, struct sctp_event_subscribe *sctp_events,
char **error) char **error)
...@@ -3921,13 +3921,13 @@ static int check_sctp_shutdown_event(struct sctp_shutdown_event_expr *expr, ...@@ -3921,13 +3921,13 @@ static int check_sctp_shutdown_event(struct sctp_shutdown_event_expr *expr,
return STATUS_OK; return STATUS_OK;
} }
#endif #endif
#ifdef __FreeBSD__ #if defined(__FreeBSD__) || defined(linux)
static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr, static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
struct sctp_sender_dry_event *sctp_event, struct sctp_sender_dry_event *sctp_event,
char **error) { char **error) {
if (expr->sender_dry_type->type != EXPR_ELLIPSIS) { if (expr->sender_dry_type->type != EXPR_ELLIPSIS) {
u16 sender_dry_type; u16 sender_dry_type;
if (get_u16(expr->sender_dry_type, &sender_dry_type, error)) { if (get_u16(expr->sender_dry_type, &sender_dry_type, error)) {
return STATUS_ERR; return STATUS_ERR;
} }
...@@ -3939,7 +3939,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr, ...@@ -3939,7 +3939,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
} }
if (expr->sender_dry_flags->type != EXPR_ELLIPSIS) { if (expr->sender_dry_flags->type != EXPR_ELLIPSIS) {
u16 sender_dry_flags; u16 sender_dry_flags;
if (get_u16(expr->sender_dry_flags, &sender_dry_flags, error)) { if (get_u16(expr->sender_dry_flags, &sender_dry_flags, error)) {
return STATUS_ERR; return STATUS_ERR;
} }
...@@ -3951,7 +3951,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr, ...@@ -3951,7 +3951,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
} }
if (expr->sender_dry_type->type != EXPR_ELLIPSIS) { if (expr->sender_dry_type->type != EXPR_ELLIPSIS) {
u32 sender_dry_length; u32 sender_dry_length;
if (get_u32(expr->sender_dry_length, &sender_dry_length, error)) { if (get_u32(expr->sender_dry_length, &sender_dry_length, error)) {
return STATUS_ERR; return STATUS_ERR;
} }
...@@ -3963,7 +3963,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr, ...@@ -3963,7 +3963,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
} }
if (expr->sender_dry_assoc_id->type != EXPR_ELLIPSIS) { if (expr->sender_dry_assoc_id->type != EXPR_ELLIPSIS) {
u32 sender_dry_assoc_id; u32 sender_dry_assoc_id;
if (get_u32(expr->sender_dry_assoc_id, &sender_dry_assoc_id, error)) { if (get_u32(expr->sender_dry_assoc_id, &sender_dry_assoc_id, error)) {
return STATUS_ERR; return STATUS_ERR;
} }
...@@ -4011,7 +4011,7 @@ static int check_sctp_notification(struct iovec *iov, ...@@ -4011,7 +4011,7 @@ static int check_sctp_notification(struct iovec *iov,
case EXPR_ELLIPSIS: case EXPR_ELLIPSIS:
break; break;
default: default:
asprintf(error, "Bad type for iov_base. Can't check type %s", asprintf(error, "Bad type for iov_base. Can't check type %s",
expression_type_to_string(script_iov_base->type)); expression_type_to_string(script_iov_base->type));
return STATUS_ERR; return STATUS_ERR;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment