]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Remove a compile warning
authorRoy Marples <roy@marples.name>
Wed, 12 Feb 2025 11:24:07 +0000 (11:24 +0000)
committerRoy Marples <roy@marples.name>
Wed, 12 Feb 2025 11:24:07 +0000 (11:24 +0000)
src/dhcp.c

index 530ec67156dc40a4c80fb153bc0b14a5640e4d75..d521e2014e942fcb5a5474b5eac0ec963c3ef257 100644 (file)
@@ -736,7 +736,7 @@ struct rfc3396_ctx {
  * when the option overflows the boundary and another option
  * is created to hold the resta of the data.
  * Tested against Wireshark-4.4.1 */
-#define RFC3396_BOUNDARY UINT8_MAX
+#define RFC3396_BOUNDARY 255UL
 static ssize_t
 rfc3396_write(struct rfc3396_ctx *ctx, void *data, size_t len)
 {