summaryrefslogtreecommitdiff
path: root/x11perf.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-13 18:55:51 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-13 18:55:51 -0200
commitc7f3c6652e9507e4303fd9ed913c593afb7447f0 (patch)
treebb78edc4cdd137a3f2e7eb6e9d6fdd3b2c9f9706 /x11perf.c
parent828c0323450eadaf040749c010918679f5e4fe53 (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, and corrects make distcheck.
Diffstat (limited to 'x11perf.c')
-rw-r--r--x11perf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/x11perf.c b/x11perf.c
index 08c0062..0997f41 100644
--- a/x11perf.c
+++ b/x11perf.c
@@ -49,7 +49,7 @@ int abortTest;
typedef struct _RopNames { char *name; int rop; } RopNameRec, *RopNamePtr;
-RopNameRec ropNames[] = {
+static RopNameRec ropNames[] = {
{ "clear", GXclear }, /* 0 */
{ "and", GXand }, /* src AND dst */
{ "andReverse", GXandReverse }, /* src AND NOT dst */
@@ -68,7 +68,7 @@ RopNameRec ropNames[] = {
{ "set", GXset } /* 1 */
};
-RopNameRec popNames[] = {
+static RopNameRec popNames[] = {
{ "Clear", PictOpClear },
{ "Src", PictOpSrc },
{ "Dst", PictOpDst },
@@ -85,7 +85,7 @@ RopNameRec popNames[] = {
{ "Saturate", PictOpSaturate },
};
-RopNameRec formatNames[] = {
+static RopNameRec formatNames[] = {
{ "RGB24", PictStandardRGB24 },
{ "ARGB32", PictStandardARGB32 },
{ "A8", PictStandardA8 },
@@ -94,7 +94,7 @@ RopNameRec formatNames[] = {
{ "NATIVE", PictStandardNative },
};
-char *(visualClassNames)[] = {
+static char *(visualClassNames)[] = {
"StaticGray",
"GrayScale",
"StaticColor",
@@ -1093,14 +1093,14 @@ main(int argc, char *argv[])
len = strlen(argv[i]);
if(len>=3)
ForEachTest (j) {
- if (Strstr (test[j].option, argv[i]+1) != 0) {
+ if (Strstr (test[j].option, argv[i]+1) != NULL) {
fprintf(stderr," -> %s %s\n", test[j].option, LABELP(j));
doit[j] = found = True;
}
}
if(!found)
ForEachTest (j) {
- if (Strstr (LABELP(j), argv[i]+1) != 0) {
+ if (Strstr (LABELP(j), argv[i]+1) != NULL) {
fprintf(stderr," -> %s %s\n", test[j].option, LABELP(j));
doit[j] = found = True;
}