locktest: remove manual declaration of errno
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
commitdca33a60098b39c9a4a1987a76be5bd13ae30775
tree3a68c8010e975595bbd24fb9a0ce7d2206cadc98
parent9cd152cafd7736ab2c4485f0f471b7b191943e11
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>
src/locktest.c