summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 13:43:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 10:59:31 -0800
commitd14f35cc68f3af42b1b8e23cfc126d0ccfa4f9d0 (patch)
tree2c56846cb1091c9333606ba76385dc2aff73ec48
parent7225d04bb78a62b88fcca555df55373a6931f676 (diff)
Fix -Wmissing-prototypes & -Wnested-externs warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/leo.h7
-rw-r--r--src/leo_driver.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/src/leo.h b/src/leo.h
index c45c59b..1ea28dc 100644
--- a/src/leo.h
+++ b/src/leo.h
@@ -101,4 +101,11 @@ extern int LeoGCPrivateIndex;
extern int leoRopTable[];
+/* leo_accel.c */
+extern Bool LeoAccelInit(ScreenPtr pScreen, LeoPtr pLeo);
+extern void LeoVtChange (ScreenPtr pScreen, int enter);
+
+/* leo_cursor.c */
+extern Bool LeoHWCursorInit(ScreenPtr pScreen);
+
#endif /* LEO_H */
diff --git a/src/leo_driver.c b/src/leo_driver.c
index 1b8a9d5..5d7a5b1 100644
--- a/src/leo_driver.c
+++ b/src/leo_driver.c
@@ -457,7 +457,6 @@ LeoScreenInit(SCREEN_INIT_ARGS_DECL)
LeoPtr pLeo;
int ret;
VisualPtr visual;
- extern Bool LeoAccelInit(ScreenPtr pScreen, LeoPtr pLeo);
/*
* First get the ScrnInfoRec
@@ -539,7 +538,6 @@ LeoScreenInit(SCREEN_INIT_ARGS_DECL)
/* Initialize HW cursor layer.
Must follow software cursor initialization*/
if (pLeo->HWCursor) {
- extern Bool LeoHWCursorInit(ScreenPtr pScreen);
if(!LeoHWCursorInit(pScreen)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
@@ -590,8 +588,6 @@ LeoAdjustFrame(ADJUST_FRAME_ARGS_DECL)
return;
}
-extern void LeoVtChange (ScreenPtr pScreen, int enter);
-
/*
* This is called when VT switching back to the X server. Its job is
* to reinitialise the video mode.