aboutsummaryrefslogtreecommitdiff
path: root/os.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-01-04 00:22:34 +0000
committerXin LI <delphij@FreeBSD.org>2016-01-04 00:22:34 +0000
commit59d1fa4298584d1670edf26ee475b9b8f6a1c7bc (patch)
tree8f43d5492b0b0c6dbf3a7b8f98085e8dd6d97a78 /os.c
parent368ca3013fcfe6e0e9470294fdc2f837025fa519 (diff)
downloadsrc-59d1fa4298584d1670edf26ee475b9b8f6a1c7bc.tar.gz
src-59d1fa4298584d1670edf26ee475b9b8f6a1c7bc.zip
Vendor import of less v481.vendor/less/v481
Notes
Notes: svn path=/vendor/less/dist/; revision=293125 svn path=/vendor/less/v481/; revision=293126; tag=vendor/less/v481
Diffstat (limited to 'os.c')
-rw-r--r--os.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/os.c b/os.c
index eb75bbae464c..530abe19d4cc 100644
--- a/os.c
+++ b/os.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2012 Mark Nudelman
+ * Copyright (C) 1984-2015 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -33,12 +33,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
@@ -191,7 +185,7 @@ intread()
* Return the current time.
*/
#if HAVE_TIME
- public long
+ public time_type
get_time()
{
time_type t;
@@ -243,7 +237,7 @@ errno_message(filename)
#else
p = "cannot open";
#endif
- len = strlen(filename) + strlen(p) + 3;
+ len = (int) (strlen(filename) + strlen(p) + 3);
m = (char *) ecalloc(len, sizeof(char));
SNPRINTF2(m, len, "%s: %s", filename, p);
return (m);