remove a few aliasing warnings
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Jan 2011 00:25:34 +0000 (01:25 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Jan 2011 00:25:34 +0000 (01:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/get_header_tar.c
networking/udhcp/dhcprelay.c

index 78b0ae25fe2e5307cfd2f5a54788512020c4d557..2e03327926fe0d4494dbb4a1fb05b8a883264a3f 100644 (file)
@@ -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().
index 759a4ba0343f48d1c20826f05b3e7198d9fea984..86ef04a62e4a65eb6feba850aff99172cc59a4f4 100644 (file)
@@ -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)