squashfs4: fix a compile error on big-endian systems (patch from #9842)
[openwrt/staging/lynxis/omap.git] / tools / squashfs4 / patches / 160-expose_lzma_xz_options.patch
index 61f5e6c37d1037b3dcb36941bb281ef15d7c707c..d6063969d274278df08046a5c73ee38aea1bd404 100644 (file)
 +              if (size != sizeof(struct lzma_opts))
 +                      goto failed;
 +              
-+              SQUASHFS_INSWAP_LZMA_COMP_OPTS(&comp_opts);
++              SQUASHFS_INSWAP_LZMA_COMP_OPTS(comp_opts);
 +              
 +              options.flags = comp_opts->flags & LZMA_OPT_FLT_MASK;
 +              options.preset  = (comp_opts->flags & LZMA_OPT_PRE_MASK) >> LZMA_OPT_PRE_OFF;