1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
From: Ian Jackson <ijackson@chiark.greenend.org.uk>
Date: Thu, 15 Aug 2024 20:10:04 +0100
Subject: Fix implicit ints in function declarations
Closes: #1075602
---
unclutter.c | 7 ++++++-
vroot.h | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/unclutter.c b/unclutter.c
index c016663..de5a971 100644
--- a/unclutter.c
+++ b/unclutter.c
@@ -32,10 +32,12 @@
#include <regex.h>
char *progname;
+void
pexit(str)char *str;{
fprintf(stderr,"%s: %s\n",progname,str);
exit(1);
}
+void
usage(){
pexit("usage:\n\
-display <display>\n\
@@ -93,6 +95,7 @@ regex_t *nc_re = 0; /* regex for list of classes/names to avoid */
* return true if window has a wm_name (class) and the start of it matches
* one of the given names (classes) to avoid
*/
+int
nameinlist(display,window)
Display *display;
Window window;
@@ -131,6 +134,7 @@ Window window;
/*
* create a small 1x1 curssor with all pixels masked out on the given screen.
*/
+Cursor
createnullcursor(display,root)
Display *display;
Window root;
@@ -155,7 +159,8 @@ Window root;
return cursor;
}
-main(argc,argv)char **argv;{
+int
+main(argc,argv)char **argv; int argc;{
Display *display;
int screen,oldx = -99,oldy = -99,numscreens;
int doroot = 0, jitter = 0, usegrabmethod = 0, waitagain = 0,
diff --git a/vroot.h b/vroot.h
index 0f32668..cbe41dc 100644
--- a/vroot.h
+++ b/vroot.h
@@ -40,6 +40,7 @@
static Window
VirtualRootWindow(dpy, screen)
Display *dpy;
+int screen;
{
static Display *save_dpy = (Display *)0;
static int save_screen = -1;
|