[PATCH] dix: don't use "new" as a parameter name

Aaron Plattner aplattner at nvidia.com
Fri Jul 20 00:59:20 PDT 2012


"new" is a reserved word in C++.

Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
 include/screenint.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/screenint.h b/include/screenint.h
index e36b4d8..e61cd33 100644
--- a/include/screenint.h
+++ b/include/screenint.h
@@ -72,18 +72,18 @@ extern _X_EXPORT int AddGPUScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
 extern _X_EXPORT void RemoveGPUScreen(ScreenPtr pScreen);
 
 extern _X_EXPORT void
-AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr new);
+AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen);
 extern _X_EXPORT void
 DetachUnboundGPU(ScreenPtr unbound);
 
 extern _X_EXPORT void
-AttachOutputGPU(ScreenPtr pScreen, ScreenPtr new);
+AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen);
 
 extern _X_EXPORT void
 DetachOutputGPU(ScreenPtr output);
 
 extern _X_EXPORT void
-AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr new);
+AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
 
 extern _X_EXPORT void
 DetachOffloadGPU(ScreenPtr slave);
-- 
1.7.9.5



More information about the xorg-devel mailing list