Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-12-19 02:15:17 +0300
committerJunio C Hamano <gitster@pobox.com>2020-12-19 02:15:17 +0300
commitecfc02df857485b866b85306854369631830ecc4 (patch)
tree218e652597967fa7b823d7953656e502fd0e68b7
parent263dc03b820d4b1f1fc3e2e70618124034f5cd2b (diff)
parent14639a47799461fbdb3bed6845c61a0ca0524200 (diff)
Merge branch 'jc/compat-util-setitimer-fix'
Fix a recent bug in a rarely used replacement code. * jc/compat-util-setitimer-fix: compat-util: pretend that stub setitimer() always succeeds
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 7d509c5022..104993b975 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -273,7 +273,7 @@ struct itimerval {
#ifdef NO_SETITIMER
static inline int setitimer(int which, const struct itimerval *value, struct itimerval *newvalue) {
- ; /* nothing */
+ return 0; /* pretend success */
}
#endif