]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add include for stddef.h and remove an extra space from dhcrelay.c
authorShawn Routhier <sar@isc.org>
Tue, 2 Feb 2010 19:58:18 +0000 (19:58 +0000)
committerShawn Routhier <sar@isc.org>
Tue, 2 Feb 2010 19:58:18 +0000 (19:58 +0000)
includes/dhcpd.h
relay/dhcrelay.c

index 15a7af0c09d477c29dbe3db1c30b7df93b9f3d3f..dc17c3cbca26228c1d2470ce1564e9a913be9a14 100644 (file)
@@ -47,6 +47,7 @@
 #define fd_set cygwin_fd_set
 #include <sys/types.h>
 #endif
+#include <sys/stddef.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <unistd.h>
index 53651b640ad555a4d963bc98e73c13c75946de64..b127328af3475586cb2a9186157d8680aaa5503c 100644 (file)
@@ -1483,7 +1483,7 @@ process_down6(struct packet *packet) {
        if (!evaluate_option_cache(&relay_msg, packet, NULL, NULL,
                                   packet->options, NULL,
                                   &global_scope, oc, MDL) ||
-           (relay_msg.len < offsetof (struct dhcpv6_packet, options))) {
+           (relay_msg.len < offsetof(struct dhcpv6_packet, options))) {
                log_error("Can't evaluate relay-msg.");
                return;
        }