[PATCH 04/18] Three minor warning and whitespace fixes

Keith Packard keithp at keithp.com
Sat Aug 16 23:13:07 PDT 2014


Declare a constant string 'const', clean up some indentation whitespace

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 src/uxa/intel_display.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index e1b09ab..cd5f80c 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -184,7 +184,7 @@ intel_output_backlight_init(xf86OutputPtr output)
 {
 	struct intel_output *intel_output = output->driver_private;
 	intel_screen_private *intel = intel_get_screen_private(output->scrn);
-	char *str;
+	const char *str;
 
 #if !USE_BACKLIGHT
 	return;
@@ -1518,7 +1518,7 @@ intel_do_pageflip(intel_screen_private *intel,
 	xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(scrn);
 	struct intel_crtc *crtc = config->crtc[0]->driver_private;
 	struct intel_mode *mode = crtc->mode;
-	unsigned int pitch = scrn->displayWidth * intel->cpp;
+        unsigned int pitch = scrn->displayWidth * intel->cpp;
 	struct intel_pageflip *flip;
 	uint32_t new_fb_id;
 	uint32_t flags;
@@ -2221,7 +2221,7 @@ intel_create_pixmap_for_bo(ScreenPtr pScreen, dri_bo *bo,
 		return NullPixmap;
 	}
 
-	intel_set_pixmap_bo(pixmap, bo);
+        intel_set_pixmap_bo(pixmap, bo);
 	return pixmap;
 }
 
-- 
2.0.1



More information about the xorg-devel mailing list