diff test/testkeys.c @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d93862a3d821
children 1a8bab15a45d
line wrap: on
line diff
--- a/test/testkeys.c	Thu Jul 06 18:01:37 2006 +0000
+++ b/test/testkeys.c	Mon Jul 10 21:04:37 2006 +0000
@@ -8,18 +8,18 @@
 
 #include "SDL.h"
 
-int main(int argc, char *argv[])
+int
+main(int argc, char *argv[])
 {
-	SDLKey key;
+    SDLKey key;
 
-	if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
-		fprintf(stderr, "Couldn't initialize SDL: %s\n",
-							SDL_GetError());
-		exit(1);
-	}
-	for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) {
-		printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key));
-	}
-	SDL_Quit();
-	return(0);
+    if (SDL_Init(SDL_INIT_VIDEO) < 0) {
+        fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
+        exit(1);
+    }
+    for (key = SDLK_FIRST; key < SDLK_LAST; ++key) {
+        printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key));
+    }
+    SDL_Quit();
+    return (0);
 }