[PATCH xserver] privates.h: remove return in function returning void

Roberto Branciforti rbbrnc at gmail.com
Wed Jan 19 15:18:32 PST 2011


dixSetScreenPrivate and dixSetPrivate are function returning void.

Signed-off-by: Roberto Branciforti <rbbrnc at gmail.com>
---
 include/privates.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/privates.h b/include/privates.h
index 7ef2cb7..2b0040c 100644
--- a/include/privates.h
+++ b/include/privates.h
@@ -195,7 +195,7 @@ dixGetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenP
 static inline void
 dixSetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen, pointer val)
 {
-    return dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
+    dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
 }
 
 static inline pointer
-- 
1.6.4



More information about the xorg-devel mailing list