From 024cf7cc49bf75fa6698752221cc6ae503e38978 Mon Sep 17 00:00:00 2001 From: BytesGalore Date: Tue, 13 Jan 2015 11:38:03 +0100 Subject: [PATCH] tests/pnet: renamed `PORT` define as it collides with the samd21-xpro definition --- tests/pnet/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pnet/main.c b/tests/pnet/main.c index c5b6500fee..66c04605b9 100644 --- a/tests/pnet/main.c +++ b/tests/pnet/main.c @@ -35,7 +35,7 @@ #define R_ADDR (1) #endif -#define PORT (1234) +#define PNET_PORT (1234) #define ERROR(...) printf("ERROR: " __VA_ARGS__) @@ -57,7 +57,7 @@ int main(void) their_addr.sin6_family = AF_INET6; #if R_ADDR == 1 - their_addr.sin6_port = PORT; + their_addr.sin6_port = PNET_PORT; #else their_addr.sin6_port = 0; #endif @@ -82,7 +82,7 @@ int main(void) memcpy(buffer, "Hello, World!", 14); memcpy(&my_addr, &in6addr_any, sizeof(my_addr)); - my_addr.sin6_port = PORT; + my_addr.sin6_port = PNET_PORT; sockfd = socket(AF_INET6, SOCK_DGRAM, 0); res = bind(sockfd, (struct sockaddr *)&my_addr, sizeof(my_addr));