summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/loopback/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-24 10:06:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-24 10:06:49 +0200
commitc192109f72d801464232988acc65ea5d4aa62348 (patch)
tree9c9cd7a91dd526a81a5e48d4aa7cd73332ddb789 /testsuites/samples/loopback/init.c
parentbsp/beagle: Fix warnings (diff)
downloadrtems-c192109f72d801464232988acc65ea5d4aa62348.tar.bz2
samples: Fix warnings
Diffstat (limited to '')
-rw-r--r--testsuites/samples/loopback/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c
index d537731bba..5cbbd54620 100644
--- a/testsuites/samples/loopback/init.c
+++ b/testsuites/samples/loopback/init.c
@@ -100,7 +100,7 @@ static rtems_task workerTask(rtems_task_argument arg)
{
int s = arg;
char msg[80];
- char reply[100];
+ char reply[120];
int i;
for (;;) {
@@ -156,7 +156,7 @@ static rtems_task serverTask(rtems_task_argument arg)
else
rtems_panic("Can't accept connection: %s", strerror(errno));
else
- printf("ACCEPTED:%lX\n", ntohl(farAddr.sin_addr.s_addr));
+ printf("ACCEPTED:%" PRIu32 "\n", ntohl(farAddr.sin_addr.s_addr));
spawnTask(workerTask, myPriority, s1);
}
}