From: Theodore Ts'o Date: Tue, 4 Aug 2015 04:10:49 +0000 (+1000) Subject: locktest: remove manual declaration of errno X-Git-Tag: v2022.05.01~2826 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dca33a60098b39c9a4a1987a76be5bd13ae30775;p=users%2Fhch%2Fxfstests-dev.git 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 --- diff --git a/src/locktest.c b/src/locktest.c index 23bb2406d..adf8ce05c 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);