[Piglit] [PATCH] util: Remove duplicate include of errno.h header.
Vinson Lee
vlee at vmware.com
Thu Sep 8 11:35:09 PDT 2011
util: Remove duplicate include of errno.h header.
errno.h is already defined earlier in the file.
Fixes Coverity unnecessary header file defect.
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index f6be044..8d56631 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -32,17 +32,16 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include "config.h"
#if defined(HAVE_SYS_TIME_H) && defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_SETRLIMIT)
#include <sys/time.h>
#include <sys/resource.h>
-#include <errno.h>
#define USE_SETRLIMIT
#endif
#include "piglit-util.h"
void piglit_glutInit(int argc, char **argv)
{
glutInit(&argc, argv);
More information about the Piglit
mailing list