It is HAVE_PTY_H, also add a cast to shut gcc up.

pull/1/head
Nicholas Marriott 2009-05-14 07:58:38 +00:00
parent c495337e76
commit 4b64bd7b01
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.141 2009-05-13 23:27:00 nicm Exp $ */
/* $Id: server.c,v 1.142 2009-05-14 07:58:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -601,7 +601,7 @@ server_check_timers(struct client *c)
if (interval == 0)
return;
if (tv.tv_sec < c->status_timer.tv_sec ||
tv.tv_sec - c->status_timer.tv_sec >= interval)
((u_int) tv.tv_sec) - c->status_timer.tv_sec >= interval)
c->flags |= CLIENT_STATUS;
}

View File

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.74 2009-05-13 23:27:00 nicm Exp $ */
/* $Id: window.c,v 1.75 2009-05-14 07:58:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -38,7 +38,7 @@
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
#endif
#ifdef USE_PTY_H
#ifdef HAVE_PTY_H
#include <pty.h>
#endif
#ifdef HAVE_UTIL_H