dtscreen: convert K&R prototypes to ansi C

This commit is contained in:
Peter Howkins
2015-01-14 15:06:33 +00:00
parent 5c8f66a07d
commit d53a979639
14 changed files with 56 additions and 137 deletions

View File

@@ -150,7 +150,7 @@ error(s1, s2)
* Restore all grabs, reset screensaver, restore colormap, close connection.
*/
static void
finish()
finish(void)
{
XSync(dsp, False);
if (winprop)
@@ -161,7 +161,7 @@ finish()
static void
justDisplay()
justDisplay(void)
{
XEvent event;
int window;
@@ -186,10 +186,7 @@ justDisplay()
long
allocpixel(cmap, name, def)
Colormap cmap;
char *name;
char *def;
allocpixel(Colormap cmap, char *name, char *def)
{
XColor col;
XColor tmp;
@@ -214,9 +211,7 @@ allocpixel(cmap, name, def)
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
XSetWindowAttributes xswa;
XGCValues xgcv;