From f8cc2bdb6d73a770e3f94cf1f183eb96bb4f18d4 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Tue, 17 Feb 2009 07:57:13 +0100 Subject: Remove a spurious restrict in cast. As far as I can tell, restrict only matters on the declaration side and doesn't mean anything in a cast. Unlike const. Flagged by Coverity. --- apps/unix/ximage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/unix/ximage.c') diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c index f1429e62..2dd0abc4 100644 --- a/apps/unix/ximage.c +++ b/apps/unix/ximage.c @@ -448,8 +448,8 @@ static void ximage_convert_argb8888(PARAMS) { int x, y; - unsigned * restrict s = (unsigned * restrict )src; - unsigned * restrict d = (unsigned * restrict )dst; + unsigned * restrict s = (unsigned *)src; + unsigned * restrict d = (unsigned *)dst; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { d[x] = s[x]; -- cgit v1.2.3