-/* $OpenBSD: rtr_proto.c,v 1.6 2022/03/08 13:02:42 tb Exp $ */
+/* $OpenBSD: rtr_proto.c,v 1.7 2022/07/11 16:47:27 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
rh.session_id = htons(session_id);
rh.length = htonl(len);
- /* can not fail with fixed buffers */
+ /* cannot fail with fixed buffers */
ibuf_add(buf, &rh, sizeof(rh));
return buf;
}
return;
}
- /* can not fail with fixed buffers */
+ /* cannot fail with fixed buffers */
hdrlen = ntohl(len);
ibuf_add(buf, &hdrlen, sizeof(hdrlen));
ibuf_add(buf, pdu, len);
return;
}
- /* can not fail with fixed buffers */
+ /* cannot fail with fixed buffers */
s = htonl(rs->serial);
ibuf_add(buf, &s, sizeof(s));
ibuf_close(&rs->w, buf);