Skip to content

Commit 43c1c79

Browse files
committed
Merge branch 'hn/sleep-millisec-decl'
Move a definition of compatibility wrapper from cache.h to git-compat-util.h * hn/sleep-millisec-decl: move sleep_millisec to git-compat-util.h
2 parents 9f41d09 + a76b138 commit 43c1c79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,6 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
19601960
void stat_validity_update(struct stat_validity *sv, int fd);
19611961

19621962
int versioncmp(const char *s1, const char *s2);
1963-
void sleep_millisec(int millisec);
19641963

19651964
/*
19661965
* Create a directory and (if share is nonzero) adjust its permissions

git-compat-util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,4 +1354,6 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset)
13541354
((uintptr_t)&(ptr)->member - (uintptr_t)(ptr))
13551355
#endif /* !__GNUC__ */
13561356

1357+
void sleep_millisec(int millisec);
1358+
13571359
#endif

0 commit comments

Comments
 (0)