use unsigned long instead of uint32_t to match atomic ulong

This commit is contained in:
Cloud Wu
2021-01-11 17:32:37 +08:00
parent 933dbbd570
commit 649aee1a23

View File

@@ -1269,7 +1269,7 @@ init_oid_header() {
oid_header[3] = pid & 0xff;
oid_header[4] = (pid >> 8) & 0xff;
uint32_t c = h ^ time(NULL) ^ (uintptr_t)&h;
unsigned long c = h ^ time(NULL) ^ (uintptr_t)&h;
if (c == 0) {
c = 1;
}