$OpenBSD: patch-xuvmstat_c,v 1.2 2002/08/29 01:58:57 wcobb Exp $
--- xuvmstat.c.orig	Tue Feb 20 10:40:49 2001
+++ xuvmstat.c	Wed Aug 28 00:18:02 2002
@@ -24,6 +24,7 @@
  * xuvmstat.c
  */
 
+#include <err.h>
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
@@ -31,9 +32,6 @@
 #include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/time.h>
-#if (__NetBSD_Version__ < 105000000)
-#include <vm/vm.h>
-#endif
 #include <uvm/uvm_extern.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -52,6 +50,7 @@ struct graph *gp_faults, *gp_traps, *gp_
 
 #define WIDTH 300
 
+int
 main(argc, argv)
 
 int argc;
@@ -106,7 +105,7 @@ char **argv;
   gettimeofday(&otv, NULL);
 
   {
-    int count = 0, xfd = ConnectionNumber(xdpy.dpy), retval;
+    int xfd = ConnectionNumber(xdpy.dpy), retval;
     struct timeval now, incr, ping, timer;
     XEvent event;
    
@@ -154,6 +153,8 @@ char **argv;
 
   XFreeFont(xdpy.dpy, fnt_fixed);
   XCloseDisplay(xdpy.dpy);
+
+  return (0);
 }
 
 /*
