Commit 0b355da3 authored by Alessandro Rubini's avatar Alessandro Rubini

general: fix ntohl and friends

<arch/arch.h> already defined the four network converters, so this
removes pp_htons and the other ones.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 6f7961f0
......@@ -200,20 +200,3 @@ _end:
int pp_net_shutdown(struct pp_instance *ppi)
__attribute__((alias("posix_net_shutdown")));
extern UInteger32 posix_htonl(UInteger32 hostlong)
{
return htonl(hostlong);
}
extern UInteger16 posix_htons(UInteger16 hostshort)
{
return htons(hostshort);
}
UInteger32 pp_htonl(UInteger32 hostlong)
__attribute__((alias("posix_htonl")));
UInteger16 pp_htons(UInteger16 hostlong)
__attribute__((alias("posix_htons")));
......@@ -187,9 +187,6 @@ extern int pp_net_init(struct pp_instance *ppi);
extern int pp_net_shutdown(struct pp_instance *ppi);
extern int pp_recv_packet(struct pp_instance *ppi, void *pkt, int len);
extern int pp_send_packet(struct pp_instance *ppi, void *pkt, int len);
extern UInteger32 pp_htonl(UInteger32 hostlong);
extern UInteger16 pp_htons(UInteger16 hostshort);
/* Timers */
extern int pp_timer_init(struct pp_instance *ppi); /* initializes timer common
......
This diff is collapsed.
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