]> wimlib.net Git - wimlib/blobdiff - src/comp.h
to_leXX() -> cpu_to_leXX(), leXX_to_cpu()
[wimlib] / src / comp.h
index c60fd886e3ea17d112c499cce015b13555971444..7b5f6c6bfd94e5f41f9e6da30f35a654f4671f85 100644 (file)
@@ -46,11 +46,11 @@ static inline int bitstream_put_byte(struct output_bitstream *ostream,
 }
 
 static inline int bitstream_put_two_bytes(struct output_bitstream *ostream,
-                                          u16 n)
+                                         u16 n)
 {
        if (ostream->num_bytes_remaining < 2)
                return 1;
-       *(u16*)ostream->output = to_le16(n);
+       *(u16*)ostream->output = cpu_to_le16(n);
        ostream->output += 2;
        ostream->num_bytes_remaining -= 2;
        return 0;