git: dff56e811898 - main - hastd: Fix build failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Oct 2026 15:01:22 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=dff56e8118985248678e1a6916cdefd708a9d85f
commit dff56e8118985248678e1a6916cdefd708a9d85f
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-10-20 14:58:45 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-10-20 14:58:45 +0000
hastd: Fix build failure
Fixes: a5e6bee5a0bf ("hastd: Use void pointers for opaque data")
Reported by: garga@
---
sbin/hastd/proto_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/hastd/proto_common.c b/sbin/hastd/proto_common.c
index c96b325a4130..f8c6d849d1c8 100644
--- a/sbin/hastd/proto_common.c
+++ b/sbin/hastd/proto_common.c
@@ -145,7 +145,7 @@ proto_common_send(int sock, const void *data, size_t size, int fd)
errno = ETIMEDOUT;
return (errno);
}
- data += done;
+ data = (const char *)data + done;
size -= done;
} while (size > 0);
if (errcount > 0) {