Patches from Vern Staats <staatsvr@asc.hpc.mil> to get Kerberos 5 in
[oweals/openssl.git] / crypto / rand / rand_vms.c
index 3e95651e580548f31572d859dc02d03e847ff4a9..29b2d7af0b016169eba49b29402b68c1f7a6e36c 100644 (file)
@@ -108,6 +108,8 @@ int RAND_poll(void)
                pitem->buffer = (long *)data_buffer[total_length];
                pitem->retlen = 0;
                total_length += pitems_data->length;
+               pitems_data++;
+               pitem++;
                }
        pitem->length = pitem->code = 0;
 
@@ -117,7 +119,7 @@ int RAND_poll(void)
         * However, view the information as only half trustable.
         */
        pid = -1;                       /* search context */
-       while ((status = SYS$GETJPIW(8, &pid,  0, item, iosb, 0, 0))
+       while ((status = sys$getjpiw(0, &pid,  0, item, iosb, 0, 0))
                != SS$_NOMOREPROC)
                {
                if (status == SS$_NORMAL)
@@ -125,7 +127,7 @@ int RAND_poll(void)
                        RAND_add(data_buffer, total_length, total_length/2);
                        }
                }
-       SYS$GETTIM(iosb);
+       sys$gettim(iosb);
        RAND_add((unsigned char *)iosb, sizeof(iosb), sizeof(iosb)/2);
        return 1;
 }