mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 16:40:31 -04:00
ChangeLog: https://github.com/unfs3/unfs3/blob/master/NEWS * include AFS support for better serving of files from AFS filesystems * use svc_getreq_poll() when available * fix serving files larger than 4GB from Windows * better support for 64-bit systems * fixes for macOS and Windows support * fixes when cross compiling * better support for exporting FAT filesystems PR: 267848 Reported by: fuz@fuz.su (maintainer) MFH: 2022Q4 (bugfix release)
19 lines
591 B
C
19 lines
591 B
C
--- md5.c.orig 2022-11-17 12:35:16 UTC
|
|
+++ md5.c
|
|
@@ -54,6 +54,7 @@
|
|
|
|
#include "md5.h"
|
|
#include <string.h>
|
|
+#include <stdint.h>
|
|
|
|
#undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian,
|
|
0 = unknown */
|
|
@@ -162,7 +163,7 @@ static void md5_process(md5_state_t * pms, const md5_b
|
|
* On little-endian machines, we can process properly aligned
|
|
* data without copying it.
|
|
*/
|
|
- if (!((data - (const md5_byte_t *) 0) & 3)) {
|
|
+ if (((uintptr_t)data & 3) == 0) {
|
|
/* data are properly aligned */
|
|
X = (const md5_word_t *) data;
|
|
} else {
|