sha[256|512]-586.pl: add more SIMD code paths.
[openssl.git] / crypto / rand / rand_egd.c
index 4e8daad804f13f2635169d01362d1c61903c59e0..d53b916ebee87c7ae77700c2fb5464920ae12cc1 100644 (file)
@@ -96,7 +96,7 @@
  */
 
 #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS) || defined(OPENSSL_SYS_BEOS)
-int RAND_query_egd_bytes(const char *path, unsigned char *buf, size_t bytes)
+int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
        {
        return(-1);
        }
@@ -105,7 +105,7 @@ int RAND_egd(const char *path)
        return(-1);
        }
 
-int RAND_egd_bytes(const char *path,size_t bytes)
+int RAND_egd_bytes(const char *path,int bytes)
        {
        return(-1);
        }
@@ -133,11 +133,11 @@ struct    sockaddr_un {
 #  define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
 #endif
 
-int RAND_query_egd_bytes(const char *path, unsigned char *buf, size_t bytes)
+int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
        {
        int ret = 0;
        struct sockaddr_un addr;
-       size_t len, num, numbytes;
+       int len, num, numbytes;
        int fd = -1;
        int success;
        unsigned char egdbuf[2], tempbuf[255], *retrievebuf;
@@ -281,7 +281,7 @@ int RAND_query_egd_bytes(const char *path, unsigned char *buf, size_t bytes)
        }
 
 
-int RAND_egd_bytes(const char *path, size_t bytes)
+int RAND_egd_bytes(const char *path, int bytes)
        {
        int num, ret = 0;