diff mbox

remove warning

Message ID BANLkTi=0NEu953=Xxj9NwcAgSTek4Nrdag@mail.gmail.com
State Accepted
Headers show

Commit Message

Riku Voipio June 23, 2011, 3:39 p.m. UTC

diff mbox

Patch

From 7835c35a45d82d8ab28e01ff9754248dec1aa488 Mon Sep 17 00:00:00 2001
From: Riku Voipio <riku.voipio@linaro.org>
Date: Thu, 16 Jun 2011 15:22:09 +0300
Subject: [PATCH 09/12] remove warning

unlocked_ioctl fileop expects long, not int

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 kfgles2/kfgles2_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kfgles2/kfgles2_main.c b/kfgles2/kfgles2_main.c
index caafa0a..94a6584 100644
--- a/kfgles2/kfgles2_main.c
+++ b/kfgles2/kfgles2_main.c
@@ -124,7 +124,7 @@  static int kfgles2_release(struct inode *inode, struct file *filep)
 	return 0;
 }
 /* Used to set the API, es11/20 */
-static int kfgles2_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
+static long kfgles2_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
 {
 	kfgles2_api = cmd;
 	KFGLES2_PRINT("ioctl called: cmd=%d, kfgles2_api=%d\n",cmd,kfgles2_api);
-- 
1.7.4.1