Skip to content

Commit

Permalink
Change type of get_time() to time_type, not long.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Oct 1, 2014
1 parent 1fc6bbf commit 71ef532
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions less.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,12 @@ struct wchar_range_table
#define CVT_CRLF 04 /* Remove CR after LF */
#define CVT_ANSI 010 /* Remove ANSI escape sequences */

#if HAVE_TIME_T
#define time_type time_t
#else
#define time_type long
#endif

#include "funcs.h"

/* Functions not included in funcs.h */
Expand Down
2 changes: 1 addition & 1 deletion linenum.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ longloopmessage()

static int loopcount;
#if HAVE_TIME
static long startime;
static time_type startime;
#endif

static void
Expand Down
8 changes: 1 addition & 7 deletions os.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
#include <values.h>
#endif

#if HAVE_TIME_T
#define time_type time_t
#else
#define time_type long
#endif

/*
* BSD setjmp() saves (and longjmp() restores) the signal mask.
* This costs a system call or two per setjmp(), so if possible we clear the
Expand Down Expand Up @@ -184,7 +178,7 @@ intread()
* Return the current time.
*/
#if HAVE_TIME
public long
public time_type
get_time()
{
time_type t;
Expand Down

0 comments on commit 71ef532

Please sign in to comment.