Index: xpostit.c
--- xpostit.c.orig
+++ xpostit.c
@@ -121,7 +121,6 @@ int argc;
 {
 	Arg args[4];
 	char *appname;
-	char *rindex();
 	Atom protos[2];
 	register int nargs;
 	Boolean setsigs = False;
@@ -179,7 +178,7 @@ int argc;
 	 * Now get any resources we're interested in.
 	 */
 	XtGetApplicationResources(toplevel, &app_res, resources,
-				  XtNumber(resources), argv, argc);
+				  XtNumber(resources), (ArgList)argv, argc);
 
 	/*
 	 * Construct the path to the directory notes are
