From 2f54cd2414c1114d7f51ac2fc8d89f0b6b5278e8 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Tue, 17 Feb 2009 08:01:33 +0100 Subject: Propagate restrict type specifiers to other ximage_convert functions. --- apps/unix/ximage.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c index 885d8437..bdf245c7 100644 --- a/apps/unix/ximage.c +++ b/apps/unix/ximage.c @@ -463,8 +463,8 @@ static void ximage_convert_bgra8888(PARAMS) { int x, y; - unsigned *s = (unsigned *)src; - unsigned *d = (unsigned *)dst; + unsigned * restrict s = (unsigned *)src; + unsigned * restrict d = (unsigned *)dst; unsigned val; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { @@ -493,8 +493,8 @@ static void ximage_convert_abgr8888(PARAMS) { int x, y; - unsigned *s = (unsigned *)src; - unsigned *d = (unsigned *)dst; + unsigned * restrict s = (unsigned *)src; + unsigned * restrict d = (unsigned *)dst; unsigned val; for (y = 0; y < h; y++) { -- cgit v1.2.3