From 726014f1d25619911ae83f0a6b84c0606c285682 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 14 May 2012 07:06:16 +0000 Subject: Use time_t to call time(), not "long int". --- editors/uemacs/distinfo | 4 ++-- editors/uemacs/patches/patch-ag | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'editors') diff --git a/editors/uemacs/distinfo b/editors/uemacs/distinfo index 0a24933d63a..9f435fe46d2 100644 --- a/editors/uemacs/distinfo +++ b/editors/uemacs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2012/05/10 20:54:54 dholland Exp $ +$NetBSD: distinfo,v 1.9 2012/05/14 07:06:16 dholland Exp $ SHA1 (ue400dev.zip) = edbb0261cdaa1803d9f7dc7debfd4a9df3a668eb RMD160 (ue400dev.zip) = 75bc1b1e11035ed24d33ec4c6afad43880d5985f @@ -9,7 +9,7 @@ SHA1 (patch-ac) = beeba5d9686f6009248437f3eb0fd10e8b72057b SHA1 (patch-ad) = 493eb3bf0c24d91d55f532029a0aa5d2ad5abe44 SHA1 (patch-ae) = 1651a3dea366cb93beff5965baa11b0d80637c7f SHA1 (patch-af) = 6f65e648db55b4402d532f63532707ce883f7300 -SHA1 (patch-ag) = 2f6e1bd24888f02083fba88d73bdcc5672cb3aab +SHA1 (patch-ag) = 903cf891588c8d4fba9fe32787a2ba720be77279 SHA1 (patch-h_ebind_h) = fd262c8559f86a923c4ca4d6ee237229c21e15c3 SHA1 (patch-h_eproto_h) = 20abd7755c63292cc87197a4de31d69491f973a8 SHA1 (patch-h_evar_h) = 3491307028a9249a159abb3d92394dbdb475c289 diff --git a/editors/uemacs/patches/patch-ag b/editors/uemacs/patches/patch-ag index 6d8b1428bb2..3fe14683d22 100644 --- a/editors/uemacs/patches/patch-ag +++ b/editors/uemacs/patches/patch-ag @@ -1,4 +1,4 @@ -$NetBSD: patch-ag,v 1.3 2012/05/10 20:53:30 dholland Exp $ +$NetBSD: patch-ag,v 1.4 2012/05/14 07:06:16 dholland Exp $ - needs term.h for termcap - get terminal size from termcap only if LINES and COLUMNS aren't set @@ -9,6 +9,7 @@ $NetBSD: patch-ag,v 1.3 2012/05/10 20:53:30 dholland Exp $ - add missing conditionals around conditionally-used declaration - remove unused variables - use correct type signature for signal handler +- use time_t for calling time() --- src/unix.c.orig 1995-11-18 21:36:58.000000000 +0000 +++ src/unix.c @@ -78,7 +79,20 @@ $NetBSD: patch-ag,v 1.3 2012/05/10 20:53:30 dholland Exp $ /** Set foreground color **/ int scfcol(color) -@@ -1553,7 +1568,6 @@ char *fspec; /* Filename specificatio +@@ -1230,11 +1245,9 @@ int bktoshell(f, n) + /** Get time of day **/ + char * timeset() + { +- long int buf; /* Should be time_t */ ++ time_t buf; + char * sp, * cp; + +- char * ctime(); +- + /* Get system time */ + time(&buf); + +@@ -1553,7 +1566,6 @@ char *fspec; /* Filename specificatio /** Get next filename from pattern **/ char *getnfile() { @@ -86,7 +100,7 @@ $NetBSD: patch-ag,v 1.3 2012/05/10 20:53:30 dholland Exp $ struct DIRENTRY * dp; struct stat fstat; -@@ -1706,15 +1720,15 @@ char *name; /* name of directory to dele +@@ -1706,15 +1718,15 @@ char *name; /* name of directory to dele /* * Window size changes handled via signals. */ -- cgit v1.2.3