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