mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
locktest: remove manual declaration of errno
locktest.c has already #included <errno.h>, 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 <tytso@mit.edu> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
9cd152cafd
commit
dca33a6009
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user