summaryrefslogtreecommitdiff
path: root/regress/misc/X11
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-08-25 19:41:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-08-25 19:41:24 +0000
commitebe0b12d4617295b289b23d92e6445a2413dc14d (patch)
treedc25356be8c78a0f714bb658833997c2f1095554 /regress/misc/X11
parentb924130f7d0fb9ba79734a11afcf424c38457fe5 (diff)
Provide prototype for the function we actually use.
KNF.
Diffstat (limited to 'regress/misc/X11')
-rw-r--r--regress/misc/X11/bltone/bltone.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/regress/misc/X11/bltone/bltone.c b/regress/misc/X11/bltone/bltone.c
index a7ece93a440..3848afc5080 100644
--- a/regress/misc/X11/bltone/bltone.c
+++ b/regress/misc/X11/bltone/bltone.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bltone.c,v 1.1 2005/08/15 18:53:42 kettenis Exp $ */
+/* $OpenBSD: bltone.c,v 1.2 2005/08/25 19:41:23 kettenis Exp $ */
/*
* Written by Mark Kettenis <kettenis@openbsd.org> 2004 Public Domain
*/
@@ -13,45 +13,45 @@ typedef unsigned FbStip;
typedef unsigned FbBits;
typedef int FbStride;
-extern void fbBltOne24 (FbStip *, FbStride, int, FbBits *, FbStride, int, int,
- int, int, FbBits, FbBits, FbBits, FbBits);
+extern void fbBltOne (FbStip *, FbStride, int, FbBits *, FbStride, int, int,
+ int, int, FbBits, FbBits, FbBits, FbBits);
FbStip mask[] = { 0x77ff7700, 0x11335577 };
int
main (void)
{
- int pagesize;
- FbStip *src;
- FbBits *dst;
- int srcX, dstX;
- int dstBpp;
-
- pagesize = getpagesize();
-
- src = mmap(NULL, 2 * pagesize, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
- assert (src);
-
- dst = mmap(NULL, 2 * pagesize, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
- assert (dst);
-
- mprotect((char *)src + pagesize, pagesize, PROT_NONE);
- src = (FbStip *)((char *)src + (pagesize - sizeof mask));
- memcpy (src, mask, sizeof mask);
-
- for (dstBpp = 8; dstBpp <= 32; dstBpp += 8)
- for (dstX = 0; dstX < 64; dstX += 8)
- for (srcX = 0; srcX < 32; srcX++)
- fbBltOne(src, 1, srcX, dst, 128, dstX, dstBpp,
- (32 - srcX) * dstBpp, 2,
- 0, 0, 0xffffffff, 0);
-
- for (dstBpp = 8; dstBpp <= 32; dstBpp += 8)
- for (dstX = 0; dstX < 64; dstX += 8)
- for (srcX = 0; srcX < 32; srcX++)
- fbBltOne(src, 1, srcX, dst, 128, dstX, dstBpp,
- (64 - srcX) * dstBpp, 1,
- 0, 0, 0xffffffff, 0);
+ int pagesize;
+ FbStip *src;
+ FbBits *dst;
+ int srcX, dstX;
+ int dstBpp;
+
+ pagesize = getpagesize();
+
+ src = mmap(NULL, 2 * pagesize, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
+ assert(src);
+
+ dst = mmap(NULL, 2 * pagesize, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
+ assert(dst);
+
+ mprotect((char *)src + pagesize, pagesize, PROT_NONE);
+ src = (FbStip *)((char *)src + (pagesize - sizeof mask));
+ memcpy (src, mask, sizeof mask);
+
+ for (dstBpp = 8; dstBpp <= 32; dstBpp += 8)
+ for (dstX = 0; dstX < 64; dstX += 8)
+ for (srcX = 0; srcX < 32; srcX++)
+ fbBltOne(src, 1, srcX, dst, 128, dstX, dstBpp,
+ (32 - srcX) * dstBpp, 2,
+ 0, 0, 0xffffffff, 0);
+
+ for (dstBpp = 8; dstBpp <= 32; dstBpp += 8)
+ for (dstX = 0; dstX < 64; dstX += 8)
+ for (srcX = 0; srcX < 32; srcX++)
+ fbBltOne(src, 1, srcX, dst, 128, dstX, dstBpp,
+ (64 - srcX) * dstBpp, 1,
+ 0, 0, 0xffffffff, 0);
return 0;
}