diff options
-rw-r--r-- | include/net/sctp/sm.h | 2 | ||||
-rw-r--r-- | net/sctp/sm_make_chunk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index de313de4fefe..a3b0e1e896f0 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -213,7 +213,7 @@ struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, | |||
213 | const struct sctp_chunk *); | 213 | const struct sctp_chunk *); |
214 | struct sctp_chunk *sctp_make_shutdown_complete(const struct sctp_association *, | 214 | struct sctp_chunk *sctp_make_shutdown_complete(const struct sctp_association *, |
215 | const struct sctp_chunk *); | 215 | const struct sctp_chunk *); |
216 | void sctp_init_cause(struct sctp_chunk *, __u16 cause, const void *, size_t); | 216 | void sctp_init_cause(struct sctp_chunk *, __be16 cause, const void *, size_t); |
217 | struct sctp_chunk *sctp_make_abort(const struct sctp_association *, | 217 | struct sctp_chunk *sctp_make_abort(const struct sctp_association *, |
218 | const struct sctp_chunk *, | 218 | const struct sctp_chunk *, |
219 | const size_t hint); | 219 | const size_t hint); |
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 507dff72c585..37472be16014 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -111,7 +111,7 @@ static const struct sctp_paramhdr prsctp_param = { | |||
111 | * provided chunk, as most cause codes will be embedded inside an | 111 | * provided chunk, as most cause codes will be embedded inside an |
112 | * abort chunk. | 112 | * abort chunk. |
113 | */ | 113 | */ |
114 | void sctp_init_cause(struct sctp_chunk *chunk, __u16 cause_code, | 114 | void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code, |
115 | const void *payload, size_t paylen) | 115 | const void *payload, size_t paylen) |
116 | { | 116 | { |
117 | sctp_errhdr_t err; | 117 | sctp_errhdr_t err; |