pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/uemacs Use time_t to call time(), not "long int".



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6462a89784e
branches:  trunk
changeset: 603827:c6462a89784e
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon May 14 07:06:16 2012 +0000

description:
Use time_t to call time(), not "long int".

diffstat:

 editors/uemacs/distinfo         |   4 ++--
 editors/uemacs/patches/patch-ag |  20 +++++++++++++++++---
 2 files changed, 19 insertions(+), 5 deletions(-)

diffs (66 lines):

diff -r 42e2f0049edc -r c6462a89784e editors/uemacs/distinfo
--- a/editors/uemacs/distinfo   Mon May 14 07:03:08 2012 +0000
+++ b/editors/uemacs/distinfo   Mon May 14 07:06:16 2012 +0000
@@ -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-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 -r 42e2f0049edc -r c6462a89784e editors/uemacs/patches/patch-ag
--- a/editors/uemacs/patches/patch-ag   Mon May 14 07:03:08 2012 +0000
+++ b/editors/uemacs/patches/patch-ag   Mon May 14 07:06:16 2012 +0000
@@ -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 @@
 - 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 @@
  
  /** 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 @@
        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.
   */



Home | Main Index | Thread Index | Old Index