mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 16:29:18 +08:00
testsuite: Fix warnings
This commit is contained in:
parent
e11f8e31f0
commit
335bb97980
@ -147,7 +147,7 @@ static rtems_task serverTask(rtems_task_argument arg)
|
||||
s = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if (s < 0)
|
||||
rtems_panic("Can't create socket: %s\n", strerror(errno));
|
||||
memset(&myAddr, 0, sizeof myAddr);
|
||||
memset(&myAddr, 0, sizeof myAddr);
|
||||
myAddr.sin_family = AF_INET;
|
||||
myAddr.sin_port = htons(1234);
|
||||
myAddr.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/console.h>
|
||||
|
@ -189,7 +189,7 @@ static void
|
||||
waiter(int fd, int secs, void *arg)
|
||||
{
|
||||
int* toggle = (int*) arg;
|
||||
const char* toggles = "|/-|\-";
|
||||
const char* toggles = "|/-|\\-";
|
||||
printf("\b%c", toggles[*toggle]);
|
||||
fflush(stdout);
|
||||
++(*toggle);
|
||||
|
@ -967,7 +967,6 @@ test_kqueue_user(test_context *ctx)
|
||||
struct kevent event;
|
||||
const struct timespec *timeout = NULL;
|
||||
int rv;
|
||||
ssize_t n;
|
||||
|
||||
puts("test kqueue user");
|
||||
|
||||
|
@ -260,8 +260,6 @@ test_main(void)
|
||||
{
|
||||
test_context *ctx = &test_instance;
|
||||
size_t i;
|
||||
rtems_id id;
|
||||
rtems_status_code sc;
|
||||
|
||||
for (i = 0; i < OBJ_COUNT; ++i) {
|
||||
ctx->value[i] = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user