summaryrefslogtreecommitdiff
path: root/random/rndw32ce.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-01-21 12:05:23 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2020-01-21 12:05:23 +0900
commit4997139b3e83761c9af0246cec829305c3d7d13b (patch)
treebd342e45cd30ec109ce28f693556e5a21b530b9e /random/rndw32ce.c
parent5ebb2f0671c902863eee91cbcfc85a72be506410 (diff)
downloadlibgcrypt-4997139b3e83761c9af0246cec829305c3d7d13b.tar.gz
Avoid use of ulong in internal code.
* configure.ac (HAVE_ULONG_TYPEDEF): Remove. * mpi/mpi-div.c (_gcry_mpi_fdiv_r_ui): Use unsigned long. (_gcry_mpi_divisible_ui): Likewise. * random/rndunix.c (_gcry_rndunix_gather_random): Likewise. * random/rndw32.c (_gcry_rndw32_gather_random_fast): Likewise. (ADDINT): Likewise. * random/rndw32ce.c (_gcry_rndw32ce_gather_random_fast): Likewise. * src/mpi.h: Follow the change. * src/types.h (HAVE_ULONG_TYPEDEF): Remove. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'random/rndw32ce.c')
-rw-r--r--random/rndw32ce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random/rndw32ce.c b/random/rndw32ce.c
index b485eef2..873e8460 100644
--- a/random/rndw32ce.c
+++ b/random/rndw32ce.c
@@ -115,7 +115,7 @@ _gcry_rndw32ce_gather_random_fast (void (*add)(const void*, size_t,
memcpy (bufptr, &along, sizeof (along)); \
bufptr += sizeof (along); \
} while (0)
- unsigned char buffer[20*sizeof(ulong)], *bufptr;
+ unsigned char buffer[20*sizeof(unsigned long)], *bufptr;
bufptr = buffer;
ADD (HWND, GetActiveWindow ());