mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 19:39:31 +08:00
testsuite: Fix warnings
This commit is contained in:
parent
e11f8e31f0
commit
335bb97980
@ -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