- pull in errx() prototype from <err.h>.

- main() is int.
ok pvalchev@
This commit is contained in:
wcobb 2002-08-29 01:58:57 +00:00
parent 5504835822
commit bcae81740d
2 changed files with 43 additions and 8 deletions

View File

@ -1,11 +1,12 @@
$OpenBSD: patch-get_uvmexp_c,v 1.2 2001/11/17 00:50:19 pvalchev Exp $
--- get_uvmexp.c.orig Mon Feb 19 07:23:55 2001
+++ get_uvmexp.c Fri Nov 16 17:32:51 2001
@@ -20,11 +20,12 @@
$OpenBSD: patch-get_uvmexp_c,v 1.3 2002/08/29 01:58:57 wcobb Exp $
--- get_uvmexp.c.orig Mon Feb 19 10:23:55 2001
+++ get_uvmexp.c Wed Aug 28 00:18:44 2002
@@ -20,11 +20,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#include <err.h>
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>

View File

@ -1,7 +1,15 @@
$OpenBSD: patch-xuvmstat_c,v 1.1 2001/11/17 00:50:19 pvalchev Exp $
--- xuvmstat.c.orig Tue Feb 20 07:40:49 2001
+++ xuvmstat.c Fri Nov 16 17:36:24 2001
@@ -31,9 +31,6 @@
$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>
@ -11,3 +19,29 @@ $OpenBSD: patch-xuvmstat_c,v 1.1 2001/11/17 00:50:19 pvalchev Exp $
#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);
}
/*