Commit fff336d5 authored by David S. Miller's avatar David S. Miller

[DECNET]: Make second arg to dn_alloc_send_skb a size_t pointer.

parent a9db38a2
...@@ -37,7 +37,7 @@ extern int dn_nsp_rx(struct sk_buff *); ...@@ -37,7 +37,7 @@ extern int dn_nsp_rx(struct sk_buff *);
extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb); extern int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri); extern struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri);
extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, int *size, int noblock, int *err); extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, int *err);
#define NSP_REASON_OK 0 /* No error */ #define NSP_REASON_OK 0 /* No error */
#define NSP_REASON_NR 1 /* No resources */ #define NSP_REASON_NR 1 /* No resources */
......
...@@ -141,7 +141,7 @@ struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri) ...@@ -141,7 +141,7 @@ struct sk_buff *dn_alloc_skb(struct sock *sk, int size, int pri)
* whole size thats been asked for (plus 11 bytes of header). If this * whole size thats been asked for (plus 11 bytes of header). If this
* fails, then we try for any size over 16 bytes for SOCK_STREAMS. * fails, then we try for any size over 16 bytes for SOCK_STREAMS.
*/ */
struct sk_buff *dn_alloc_send_skb(struct sock *sk, int *size, int noblock, int *err) struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int noblock, int *err)
{ {
int space; int space;
int len; int len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment