[Xcb-commit] tutorial.mdwn

XCB site xcb at freedesktop.org
Fri Sep 5 19:41:39 PDT 2008


 tutorial.mdwn |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit c36c9276619c9a9449403cd342825be8292621bd
Author: XCB site <xcb at freedesktop.org>
Date:   Fri Sep 5 19:41:36 2008 -0700

    web commit by jesseross

diff --git a/tutorial.mdwn b/tutorial.mdwn
index 569e8b9..f3ca82d 100644
--- a/tutorial.mdwn
+++ b/tutorial.mdwn
@@ -362,12 +362,11 @@ Here is a small program that shows how to use this function:
 		#include <stdio.h>
 		#include <xcb/xcb.h>
 
-		int
-		main ()
+		int main ()
 		{
 			/* Open the connection to the X server. Use the DISPLAY environment variable */
 			
-			int screenNum;
+			int i, screenNum;
 			xcb_connection_t *connection = xcb_connect (NULL, &screenNum);
 
 			
@@ -377,7 +376,7 @@ Here is a small program that shows how to use this function:
 			xcb_screen_iterator_t iter = xcb_setup_roots_iterator (setup);  
 			
 			// we want the screen at index screenNum of the iterator
-			for (int i = 0; i < screenNum; ++i) {
+			for (i = 0; i < screenNum; ++i) {
 				xcb_screen_next (&iter);
 			}
 			


More information about the xcb-commit mailing list