summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-16 00:25:34 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2011-01-16 00:25:34 (GMT)
commitdf1689138e71fa3648209db28146a595c4e63c26 (patch)
tree173da57b164e8ecdc9cf80da41a73443dd7a6c97
parent068444629fbcf59dd8165a63885f8e69fd5cb474 (diff)
downloadbusybox-df1689138e71fa3648209db28146a595c4e63c26.tar.gz
busybox-df1689138e71fa3648209db28146a595c4e63c26.tar.bz2
remove a few aliasing warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libarchive/get_header_tar.c2
-rw-r--r--networking/udhcp/dhcprelay.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c
index 78b0ae2..2e03327 100644
--- a/archival/libarchive/get_header_tar.c
+++ b/archival/libarchive/get_header_tar.c
@@ -199,7 +199,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle)
uint16_t magic2;
autodetect:
- magic2 = *(uint16_t*)tar.name;
+ magic2 = *(bb__aliased_uint16_t*)tar.name;
/* tar gz/bz autodetect: check for gz/bz2 magic.
* If we see the magic, and it is the very first block,
* we can switch to get_header_tar_gz/bz2/lzma().
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c
index 759a4ba..86ef04a 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -25,7 +25,7 @@ struct xid_item {
uint32_t xid;
struct sockaddr_in ip;
struct xid_item *next;
-};
+} FIX_ALIASING;
#define dhcprelay_xid_list (*(struct xid_item*)&bb_common_bufsiz1)