diff options
author | Jeff King <peff@peff.net> | 2017-03-17 01:08:10 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-17 01:16:45 +0300 |
commit | 45a574eec82424ac11c4c5fe117725597309b9c9 (patch) | |
tree | a3e7618713df7cab69d1be29d9a89c59ee0afefd /sha1dc/ubc_check.c | |
parent | 28dc98e343ca4eb370a29ceec4c19beac9b5c01e (diff) |
sha1dc: adjust header includes for git
We can replace system includes with git-compat-util.h or
cache.h (and should make sure it is included first in all C
files). And we can drop includes from headers entirely, as
every C file should include git-compat-util.h itself.
We will add in new include guards around the header files,
though (otherwise you get into trouble including both
sha1dc/sha1.h and cache.h).
And finally, we'll use the full "sha1dc/" path for including
related files. This isn't strictly necessary, but makes the
expected resolution more obvious.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1dc/ubc_check.c')
-rw-r--r-- | sha1dc/ubc_check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1dc/ubc_check.c b/sha1dc/ubc_check.c index 27d0976daa..089dd4743d 100644 --- a/sha1dc/ubc_check.c +++ b/sha1dc/ubc_check.c @@ -24,8 +24,8 @@ // ubc_check has been verified against ubc_check_verify using the 'ubc_check_test' program in the tools section */ -#include <stdint.h> -#include "ubc_check.h" +#include "git-compat-util.h" +#include "sha1dc/ubc_check.h" static const uint32_t DV_I_43_0_bit = (uint32_t)(1) << 0; static const uint32_t DV_I_44_0_bit = (uint32_t)(1) << 1; |