aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rio/cursor.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2025-07-25 11:37:39 -0400
committerDan Cross <cross@gajendra.net>2025-07-25 11:58:36 -0400
commit1e6e30e91e7a2712d9507072b5ff3b59a73e5dfe (patch)
tree4cbeff84fe7c087b3ed2171acd55e66593b684d9 /src/cmd/rio/cursor.c
parent655f7c3184fe2f1eb039211e689c2fe037fa8320 (diff)
rio: proper prototypes in `fns.h`
Use proper function prototypes in `fns.h`, that include argument type information.
Diffstat (limited to 'src/cmd/rio/cursor.c')
-rw-r--r--src/cmd/rio/cursor.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/cmd/rio/cursor.c b/src/cmd/rio/cursor.c
index 3aff91bb..5f35cc4a 100644
--- a/src/cmd/rio/cursor.c
+++ b/src/cmd/rio/cursor.c
@@ -3,15 +3,17 @@
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#include <X11/extensions/shape.h>
#include "dat.h"
#include "fns.h"
-typedef struct {
+typedef struct Cursordata Cursordata;
+struct Cursordata {
int width;
int hot[2];
unsigned char mask[64];
unsigned char fore[64];
-} Cursordata;
+};
Cursordata bigarrow = {
16,
@@ -157,9 +159,7 @@ static char grey_bits[] = {
static XColor bl, wh;
Cursor
-getcursor(c, s)
-Cursordata *c;
-ScreenInfo *s;
+getcursor(Cursordata *c, ScreenInfo *s)
{
Pixmap f, m;
@@ -172,8 +172,7 @@ ScreenInfo *s;
}
void
-initcurs(s)
-ScreenInfo *s;
+initcurs(ScreenInfo *s)
{
XColor dummy;