]> git.ipfire.org Git - thirdparty/git.git/commitdiff
move sleep_millisec to git-compat-util.h
authorHan-Wen Nienhuys <hanwen@google.com>
Tue, 24 Nov 2020 19:10:11 +0000 (19:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Nov 2020 01:40:16 +0000 (17:40 -0800)
The sleep function is defined in wrapper.c, so it makes more sense to be a in
system compatibility header.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
git-compat-util.h

diff --git a/cache.h b/cache.h
index c0072d43b1a78101f92df1283f9f34712f4c0265..e986cf4ea9c6a3adf9d7dcf8a9e4f4c6acb22093 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1960,7 +1960,6 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
 void stat_validity_update(struct stat_validity *sv, int fd);
 
 int versioncmp(const char *s1, const char *s2);
-void sleep_millisec(int millisec);
 
 /*
  * Create a directory and (if share is nonzero) adjust its permissions
index 7a0fb7a04597a4b6fa7ea48194aa334852104eb9..d963b91b71bf4cd9e764682901bc7c7fec5c1908 100644 (file)
@@ -1352,4 +1352,6 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset)
        ((uintptr_t)&(ptr)->member - (uintptr_t)(ptr))
 #endif /* !__GNUC__ */
 
+void sleep_millisec(int millisec);
+
 #endif