samples: Fix warnings

This commit is contained in:
Sebastian Huber
2018-07-24 10:06:20 +02:00
parent 61c51dbb18
commit c192109f72
2 changed files with 6 additions and 2 deletions

View File

@@ -89,6 +89,10 @@ public:
check_end_of_test();
};
#if __cplusplus >= 201103L
AClass& operator=(const AClass&) = default;
#endif
virtual void print() { printf("%s\n", string); };
protected:

View File

@@ -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);
}
}