summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-19 15:22:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-02-19 18:51:03 +0100
commit31078e083933c3873bfebc1c9f59c019061b85d9 (patch)
treed3cbc62f547cd97cb18e7675437ff69048c284e1
parent3ac63c6388cf022de7c1de15fe4933ac155e84d7 (diff)
downloadbarebox-31078e083933c3873bfebc1c9f59c019061b85d9.tar.gz
barebox-31078e083933c3873bfebc1c9f59c019061b85d9.tar.xz
net: let net_udp_get_payload return void *
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index d0f8341023..10267933c8 100644
--- a/include/net.h
+++ b/include/net.h
@@ -415,7 +415,7 @@ static inline int net_udp_bind(struct net_connection *con, int sport)
return 0;
}
-static inline unsigned char *net_udp_get_payload(struct net_connection *con)
+static inline void *net_udp_get_payload(struct net_connection *con)
{
return con->packet + sizeof(struct ethernet) + sizeof(struct iphdr) +
sizeof(struct udphdr);