From 682288fcdd88e418f936e55251ee00de07f1c031 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 29 Feb 2008 17:18:00 -0300 Subject: [PATCH] libXxf86vm ansification. No problems should exist as no promotable types are used in prototypes. --- src/XF86VMode.c | 131 ++++++++++++++++++++++++++++-------------------------- 1 files changed, 68 insertions(+), 63 deletions(-) diff --git a/src/XF86VMode.c b/src/XF86VMode.c index 75a49d2..265e372 100644 --- a/src/XF86VMode.c +++ b/src/XF86VMode.c @@ -91,9 +91,10 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86vidmode_info) *****************************************************************************/ Bool -XF86VidModeQueryExtension (dpy, event_basep, error_basep) - Display *dpy; - int *event_basep, *error_basep; +XF86VidModeQueryExtension ( + Display *dpy, + int *event_basep, + int *error_basep) { XExtDisplayInfo *info = find_display (dpy); @@ -107,10 +108,10 @@ XF86VidModeQueryExtension (dpy, event_basep, error_basep) } Bool -XF86VidModeQueryVersion(dpy, majorVersion, minorVersion) - Display* dpy; - int* majorVersion; - int* minorVersion; +XF86VidModeQueryVersion( + Display *dpy, + int *majorVersion, + int *minorVersion) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeQueryVersionReply rep; @@ -204,11 +205,11 @@ XF86VidModeGetGamma(Display *dpy, int screen, XF86VidModeGamma *Gamma) } Bool -XF86VidModeGetModeLine(dpy, screen, dotclock, modeline) - Display* dpy; - int screen; - int* dotclock; - XF86VidModeModeLine* modeline; +XF86VidModeGetModeLine( + Display *dpy, + int screen, + int *dotclock, + XF86VidModeModeLine *modeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetModeLineReply rep; @@ -281,11 +282,11 @@ XF86VidModeGetModeLine(dpy, screen, dotclock, modeline) } Bool -XF86VidModeGetAllModeLines(dpy, screen, modecount, modelinesPtr) - Display* dpy; - int screen; - int* modecount; - XF86VidModeModeInfo ***modelinesPtr; +XF86VidModeGetAllModeLines( + Display *dpy, + int screen, + int *modecount, + XF86VidModeModeInfo ***modelinesPtr) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetAllModeLinesReply rep; @@ -443,11 +444,11 @@ XF86VidModeGetAllModeLines(dpy, screen, modecount, modelinesPtr) #endif Bool -XF86VidModeAddModeLine (dpy, screen, newmodeline, aftermodeline) - Display *dpy; - int screen; - XF86VidModeModeInfo* newmodeline; - XF86VidModeModeInfo* aftermodeline; +XF86VidModeAddModeLine ( + Display *dpy, + int screen, + XF86VidModeModeInfo *newmodeline, + XF86VidModeModeInfo *aftermodeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeAddModeLineReq *req; @@ -556,10 +557,10 @@ XF86VidModeAddModeLine (dpy, screen, newmodeline, aftermodeline) } Bool -XF86VidModeDeleteModeLine (dpy, screen, modeline) - Display *dpy; - int screen; - XF86VidModeModeInfo* modeline; +XF86VidModeDeleteModeLine ( + Display *dpy, + int screen, + XF86VidModeModeInfo *modeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeDeleteModeLineReq *req; @@ -620,10 +621,10 @@ XF86VidModeDeleteModeLine (dpy, screen, modeline) } Bool -XF86VidModeModModeLine (dpy, screen, modeline) - Display *dpy; - int screen; - XF86VidModeModeLine* modeline; +XF86VidModeModModeLine ( + Display *dpy, + int screen, + XF86VidModeModeLine *modeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeModModeLineReq *req; @@ -682,10 +683,10 @@ XF86VidModeModModeLine (dpy, screen, modeline) } Status -XF86VidModeValidateModeLine (dpy, screen, modeline) - Display *dpy; - int screen; - XF86VidModeModeInfo* modeline; +XF86VidModeValidateModeLine ( + Display *dpy, + int screen, + XF86VidModeModeInfo *modeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeValidateModeLineReq *req; @@ -753,10 +754,10 @@ XF86VidModeValidateModeLine (dpy, screen, modeline) } Bool -XF86VidModeSwitchMode(dpy, screen, zoom) - Display* dpy; - int screen; - int zoom; +XF86VidModeSwitchMode( + Display *dpy, + int screen, + int zoom) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeSwitchModeReq *req; @@ -775,10 +776,10 @@ XF86VidModeSwitchMode(dpy, screen, zoom) } Bool -XF86VidModeSwitchToMode(dpy, screen, modeline) - Display* dpy; - int screen; - XF86VidModeModeInfo* modeline; +XF86VidModeSwitchToMode( + Display *dpy, + int screen, + XF86VidModeModeInfo *modeline) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeSwitchToModeReq *req; @@ -864,10 +865,10 @@ XF86VidModeSwitchToMode(dpy, screen, modeline) } Bool -XF86VidModeLockModeSwitch(dpy, screen, lock) - Display* dpy; - int screen; - int lock; +XF86VidModeLockModeSwitch( + Display *dpy, + int screen, + int lock) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeLockModeSwitchReq *req; @@ -886,10 +887,10 @@ XF86VidModeLockModeSwitch(dpy, screen, lock) } Bool -XF86VidModeGetMonitor(dpy, screen, monitor) - Display* dpy; - int screen; - XF86VidModeMonitor* monitor; +XF86VidModeGetMonitor( + Display *dpy, + int screen, + XF86VidModeMonitor *monitor) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetMonitorReply rep; @@ -979,10 +980,11 @@ XF86VidModeGetMonitor(dpy, screen, monitor) } Bool -XF86VidModeGetViewPort(dpy, screen, x, y) - Display* dpy; - int screen; - int *x, *y; +XF86VidModeGetViewPort( + Display *dpy, + int screen, + int *x, + int *y) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetViewPortReply rep; @@ -1032,10 +1034,11 @@ XF86VidModeGetViewPort(dpy, screen, x, y) } Bool -XF86VidModeSetViewPort(dpy, screen, x, y) - Display* dpy; - int screen; - int x, y; +XF86VidModeSetViewPort( + Display *dpy, + int screen, + int x, + int y) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeSetViewPortReq *req; @@ -1056,11 +1059,13 @@ XF86VidModeSetViewPort(dpy, screen, x, y) } Bool -XF86VidModeGetDotClocks(dpy, screen, - flagsPtr, numclocksPtr, maxclocksPtr, clocksPtr) - Display* dpy; - int screen; - int *flagsPtr, *numclocksPtr, *maxclocksPtr, *clocksPtr[]; +XF86VidModeGetDotClocks( + Display *dpy, + int screen, + int *flagsPtr, + int *numclocksPtr, + int *maxclocksPtr, + int *clocksPtr[]) { XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetDotClocksReply rep; -- 1.5.4.3