Whamcloud - gitweb
libext2fs: move #include "ext2fs.h" from crc32c_defs.h to crc32c.c
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 02:49:45 +0000 (22:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 02:49:45 +0000 (22:49 -0400)
commit8232f2ddaece256afd323eb5a289a5ec1b7fbd1a
tree03bddc7250d2a0aae731b7cde50f9007310fe30b
parent200569608fc6e33f6546c17999f14fb5dbb0b9b5
libext2fs: move #include "ext2fs.h" from crc32c_defs.h to crc32c.c

The byte swap functions which are defined in ext2fs.h are only needed
by crc32.c, and not by gen_crc32ctable.c.  The gen_crc32ctable program
needs to be compiled on the host OS, where ext2fs.h may not be
present.  So move the use of the header function to crc32c.c, to avoid
compilation problems.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/crc32c.c
lib/ext2fs/crc32c_defs.h