aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-06 10:52:04 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:34:35 +0000
commit134b28f883b0a24c625600b328f4c5750c849a24 (patch)
treef12ade83a3bddad569ade09ec8395878047d15ef /crypto/async/arch
parent9f078e1961d4fc798c356fa185df083f2abdb054 (diff)
downloadopenssl-134b28f883b0a24c625600b328f4c5750c849a24.zip
openssl-134b28f883b0a24c625600b328f4c5750c849a24.tar.gz
openssl-134b28f883b0a24c625600b328f4c5750c849a24.tar.bz2
Fix windows compilation warnings
Fix some warnings in the async code when compiling on windows. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/arch')
-rw-r--r--crypto/async/arch/async_null.c15
-rw-r--r--crypto/async/arch/async_null.h3
-rw-r--r--crypto/async/arch/async_posix.h4
3 files changed, 15 insertions, 7 deletions
diff --git a/crypto/async/arch/async_null.c b/crypto/async/arch/async_null.c
index f4adda9..05b4964 100644
--- a/crypto/async/arch/async_null.c
+++ b/crypto/async/arch/async_null.c
@@ -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
diff --git a/crypto/async/arch/async_null.h b/crypto/async/arch/async_null.h
index 2dc4f2b..796a13d 100644
--- a/crypto/async/arch/async_null.h
+++ b/crypto/async/arch/async_null.h
@@ -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
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h
index 5b76428..43cea6d 100644
--- a/crypto/async/arch/async_posix.h
+++ b/crypto/async/arch/async_posix.h
@@ -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