From dca33a60098b39c9a4a1987a76be5bd13ae30775 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 4 Aug 2015 14:10:49 +1000 Subject: [PATCH] locktest: remove manual declaration of errno locktest.c has already #included , so remove the unneeded (and in some cases, incorrect) manual declaration of errno as an integer. Some C libraries use a macro to provide thread-safety for errno, so it's incorrect to try to provide a manual declaration. Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- src/locktest.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/locktest.c b/src/locktest.c index 23bb2406..adf8ce05 100644 --- a/src/locktest.c +++ b/src/locktest.c @@ -779,7 +779,6 @@ main(int argc, char *argv[]) char *p; extern char *optarg; extern int optind; - extern int errno; int fail_count = 0;; atexit(cleanup); -- 2.39.5