]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
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)
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

index 23bb2406dc2488bb0d61feb8b7abc159074eb863..adf8ce05ccc5e7f28746e1cd5a75b60596a19a4a 100644 (file)
@@ -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);