Commit 134b28f8 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix windows compilation warnings



Fix some warnings in the async code when compiling on windows.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 9f078e19
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -91,5 +91,20 @@ int async_pool_can_grow(void) {
    return 0;
}

int async_pipe(int *pipefds)
{
    return -1;
}

int async_write1(int fd, const void *buf)
{
    return -1;
}

int async_read1(int fd, void *buf)
{
    return -1;
}

#endif
+0 −3
Original line number Diff line number Diff line
@@ -73,8 +73,5 @@ typedef struct async_fibre_st {
# define ASYNC_FIBRE_makecontext(c)
# define ASYNC_FIBRE_free(f)
# define ASYNC_FIBRE_init_dispatcher(f)
# define async_pipe(f)                          0
# define async_write1(f,b)                      ((*b == 0) ? (f = 0) : (f = 1))
# define async_read1(f,b)                       (*b = 0)

#endif
+0 −4
Original line number Diff line number Diff line
@@ -99,9 +99,5 @@ static inline int ASYNC_FIBRE_swapcontext(ASYNC_FIBRE *o, ASYNC_FIBRE *n, int r)
int ASYNC_FIBRE_init(ASYNC_FIBRE *fibre);
void ASYNC_FIBRE_free(ASYNC_FIBRE *fibre);

int async_pipe(int *pipefds);
int async_write1(int fd, const void *buf);
int async_read1(int fd, void *buf);

# endif
#endif
+3 −0
Original line number Diff line number Diff line
@@ -87,3 +87,6 @@ void async_release_job_to_pool(ASYNC_JOB *job);
size_t async_pool_max_size(void);
void async_release_pool(void);
int async_pool_can_grow(void);
int async_pipe(int *pipefds);
int async_write1(int fd, const void *buf);
int async_read1(int fd, void *buf);