$OpenBSD: patch-xcoloredit_c,v 1.2 2017/04/22 08:27:57 jsg Exp $
--- xcoloredit.c.orig	Sun Jan 26 03:00:21 1992
+++ xcoloredit.c	Sat Apr 22 18:22:13 2017
@@ -38,6 +38,7 @@ static char sccsid[] = "@(#)xcoloredit.c	1.2 (UKC) 25/
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <X11/Xatom.h>
 #include <X11/X.h>
 #include <X11/Intrinsic.h>
@@ -181,10 +182,10 @@ static XtResource resources[] = {
 };
 #undef offset
 
+static int WhichButton(String);
 
-void main(argc, argv)
-unsigned int argc;
-char **argv;
+int
+main(int argc, char **argv)
 {
 	Status ok;
 	unsigned long plane_masks;
