Commit 7167cb3f authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

trivial: avoid redundant redefinition of htons

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 678300fa
...@@ -6,16 +6,14 @@ ...@@ -6,16 +6,14 @@
* *
* Released according to the GNU GPL, version 2 or any later version. * Released according to the GNU GPL, version 2 or any later version.
*/ */
#include <wrc.h>
#include <wrpc.h>
#include <string.h> #include <string.h>
#include "endpoint.h" #include "endpoint.h"
#include "ipv4.h" #include "ipv4.h"
#include "ptpd_netif.h" #include "ptpd_netif.h"
#ifndef htons
#define htons(x) x
#endif
static uint8_t __arp_queue[128]; static uint8_t __arp_queue[128];
static struct wrpc_socket __static_arp_socket = { static struct wrpc_socket __static_arp_socket = {
.queue.buff = __arp_queue, .queue.buff = __arp_queue,
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
* *
* Released according to the GNU GPL, version 2 or any later version. * Released according to the GNU GPL, version 2 or any later version.
*/ */
#include <string.h> #include <wrc.h>
#include <wrpc.h> #include <wrpc.h>
#include <string.h>
#include "endpoint.h" #include "endpoint.h"
#include "ipv4.h" #include "ipv4.h"
...@@ -16,10 +17,6 @@ ...@@ -16,10 +17,6 @@
#include "hw/memlayout.h" #include "hw/memlayout.h"
#include "hw/etherbone-config.h" #include "hw/etherbone-config.h"
#ifndef htons
#define htons(x) x
#endif
enum ip_status ip_status = IP_TRAINING; enum ip_status ip_status = IP_TRAINING;
static uint8_t myIP[4]; static uint8_t myIP[4];
......
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
* Each OID is divided into the limb and twig part. * Each OID is divided into the limb and twig part.
* The twig part can be handled as a group or a table * The twig part can be handled as a group or a table
*/ */
#include <string.h> #include <wrc.h>
#include <wrpc.h> #include <wrpc.h>
#include <string.h>
#include <minic.h> #include <minic.h>
#include <limits.h> #include <limits.h>
...@@ -30,10 +31,6 @@ ...@@ -30,10 +31,6 @@
#include "storage.h" #include "storage.h"
#ifndef htons
#define htons(x) x
#endif
#define ASN_BOOLEAN ((u_char)0x01) #define ASN_BOOLEAN ((u_char)0x01)
#define ASN_INTEGER ((u_char)0x02) #define ASN_INTEGER ((u_char)0x02)
#define ASN_OCTET_STR ((u_char)0x04) #define ASN_OCTET_STR ((u_char)0x04)
......
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