Skip to content

Commit

Permalink
Update compat files.
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzbuhl committed Nov 13, 2024
1 parent bff1ff6 commit c0af0c9
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 123 deletions.
3 changes: 2 additions & 1 deletion compat/ibuf-compat.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: imsg-buffer.c,v 1.16 2023/06/19 17:19:50 claudio Exp $ */
/* $OpenBSD: imsg-buffer.c,v 1.19 2024/08/26 13:57:34 claudio Exp $ */

/*
* Copyright (c) 2003, 2004 Henning Brauer <[email protected]>
Expand Down Expand Up @@ -59,6 +59,7 @@ ibuf_add_zero(struct ibuf *buf, size_t len)

if ((b = ibuf_reserve(buf, len)) == NULL)
return (-1);
memset(b, 0, len);
return (0);
}
#endif /* !defined(HAVE_IBUF_ADD_ZERO) */
Expand Down
Loading

0 comments on commit c0af0c9

Please sign in to comment.