projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdhcp: fix strict-aliasing warning
[framework/connectivity/connman.git]
/
gdhcp
/
common.c
diff --git
a/gdhcp/common.c
b/gdhcp/common.c
index
29b1f87
..
3c80edc
100644
(file)
--- a/
gdhcp/common.c
+++ b/
gdhcp/common.c
@@
-272,7
+272,7
@@
void dhcp_add_simple_option(struct dhcp_packet *packet, uint8_t code,
data <<= 8 * (4 - len);
#endif
- dhcp_put_unaligned(data, (uint32_t *)
&option[OPT_DATA]
);
+ dhcp_put_unaligned(data, (uint32_t *)
(option + OPT_DATA)
);
dhcp_add_binary_option(packet, option);
return;