Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
168521c4
Commit
168521c4
authored
Jun 19, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ECONET]: Fix some warnings.
parent
f614ba1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
net/econet/af_econet.c
net/econet/af_econet.c
+10
-4
No files found.
net/econet/af_econet.c
View file @
168521c4
...
...
@@ -201,7 +201,7 @@ static int econet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len
return
0
;
}
#if
def CONFIG_ECONET_NATIVE
#if
defined(CONFIG_ECONET_AUNUDP) || defined(CONFIG_ECONET_NATIVE)
/*
* Queue a transmit result for the user to be told about.
*/
...
...
@@ -228,7 +228,9 @@ static void tx_result(struct sock *sk, unsigned long cookie, int result)
if
(
sock_queue_rcv_skb
(
sk
,
skb
)
<
0
)
kfree_skb
(
skb
);
}
#endif
#ifdef CONFIG_ECONET_NATIVE
/*
* Called by the Econet hardware driver when a packet transmit
* has completed. Tell the user.
...
...
@@ -255,8 +257,10 @@ static int econet_sendmsg(struct kiocb *iocb, struct socket *sock,
struct
ec_addr
addr
;
int
err
;
unsigned
char
port
,
cb
;
struct
sk_buff
*
skb
=
0
;
struct
ec_cb
*
eb
=
0
;
#if defined(CONFIG_ECONET_AUNUDP) || defined(CONFIG_ECONET_NATIVE)
struct
sk_buff
*
skb
;
struct
ec_cb
*
eb
;
#endif
#ifdef CONFIG_ECONET_AUNUDP
struct
msghdr
udpmsg
;
struct
iovec
iov
[
msg
->
msg_iovlen
+
1
];
...
...
@@ -717,7 +721,7 @@ static struct proto_ops SOCKOPS_WRAPPED(econet_ops) = {
#include <linux/smp_lock.h>
SOCKOPS_WRAP
(
econet
,
PF_ECONET
);
#if
def CONFIG_ECONET_AUNUDP
#if
defined(CONFIG_ECONET_AUNUDP) || defined(CONFIG_ECONET_NATIVE)
/*
* Find the listening socket, if any, for the given data.
*/
...
...
@@ -761,7 +765,9 @@ static int ec_queue_packet(struct sock *sk, struct sk_buff *skb,
return
sock_queue_rcv_skb
(
sk
,
skb
);
}
#endif
#ifdef CONFIG_ECONET_AUNUDP
/*
* Send an AUN protocol response.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment