pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/ex



Module Name:    pkgsrc
Committed By:   mrg
Date:           Fri Jan 18 03:34:28 UTC 2019

Modified Files:
        pkgsrc/editors/ex: distinfo
        pkgsrc/editors/ex/patches: patch-exrecover_c

Log Message:
remove now unused and always wrong prototype for system
function vsprintf().


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/editors/ex/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/editors/ex/patches/patch-exrecover_c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/ex/distinfo
diff -u pkgsrc/editors/ex/distinfo:1.17 pkgsrc/editors/ex/distinfo:1.18
--- pkgsrc/editors/ex/distinfo:1.17     Tue Nov  3 03:32:16 2015
+++ pkgsrc/editors/ex/distinfo  Fri Jan 18 03:34:28 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2015/11/03 03:32:16 agc Exp $
+$NetBSD: distinfo,v 1.18 2019/01/18 03:34:28 mrg Exp $
 
 SHA1 (ex-040103.tar.gz) = 51fa1d613b37a4f3aed1ef2968be691465cdff09
 RMD160 (ex-040103.tar.gz) = 5fc3f222dde5a8d00e1b233281ccf210affdbdf1
@@ -39,7 +39,7 @@ SHA1 (patch-ex__vput_c) = fa0216eb004ae5
 SHA1 (patch-ex__vwind_c) = 9ed05094167870f5eb9af28deb39318aa69cf832
 SHA1 (patch-ex_c) = c0c5d5d5fd45da46e2594101a7a3d4350c49ae05
 SHA1 (patch-expreserve_c) = 2c94b4eefa3e72c6abc4aaa2f54750557705c794
-SHA1 (patch-exrecover_c) = 8742a5ba155996632971891cdd4a24b4d97d4376
+SHA1 (patch-exrecover_c) = 00cc72c518773f10bb670fd5742c20773dfad719
 SHA1 (patch-libterm_libterm_h) = 2f552d89726baf1d8b2c3be15ef386db7dffe04d
 SHA1 (patch-libterm_termcap_c) = cbc3ece52b9bbfd286be7953d9cb3bcf6e460b0e
 SHA1 (patch-libterm_tgoto_c) = d4299bdd468f0fff4d0fbbb67f37b8080a334787

Index: pkgsrc/editors/ex/patches/patch-exrecover_c
diff -u pkgsrc/editors/ex/patches/patch-exrecover_c:1.2 pkgsrc/editors/ex/patches/patch-exrecover_c:1.3
--- pkgsrc/editors/ex/patches/patch-exrecover_c:1.2     Fri Dec 28 03:03:09 2012
+++ pkgsrc/editors/ex/patches/patch-exrecover_c Fri Jan 18 03:34:28 2019
@@ -1,4 +1,4 @@
-$NetBSD: patch-exrecover_c,v 1.2 2012/12/28 03:03:09 dholland Exp $
+$NetBSD: patch-exrecover_c,v 1.3 2019/01/18 03:34:28 mrg Exp $
 
 - use standard headers
 - don't declare own perror
@@ -9,10 +9,11 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
 - silence warnings about assignments in conditionals
 - return values from non-void functions
 - silence warnings about unused arguments
+- don't declare own vsprintf, not even used anymore
 
---- exrecover.c.orig   2012-12-27 21:58:41.000000000 +0000
-+++ exrecover.c
-@@ -98,6 +98,8 @@ static char sccsid[] UNUSED = "@(#)exrec
+--- exrecover.c.orig   2019-01-17 19:26:42.451474122 -0800
++++ exrecover.c        2019-01-17 19:27:32.144598036 -0800
+@@ -98,6 +98,8 @@
  typedef       int     xFILE;
  #endif
  
@@ -21,7 +22,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  #define       var
  
  #include "ex.h"
-@@ -193,30 +195,30 @@ int      vercnt;                 /* Count number of version
+@@ -193,30 +195,27 @@
  #endif
  #endif
  
@@ -52,6 +53,9 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
 -int syserror __P((void));
 -int xvfprintf __P((xFILE *, char *, va_list));
 -int xfprintf __P((xFILE *, char *, ...));
+-#ifdef        __STDC__
+-int vsprintf(char *, const char *, va_list);
+-#endif
 +void scrapbad __P((void));
 +void putfile __P((int));
 +void wrerror __P((void));
@@ -60,15 +64,12 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
 +void syserror __P((void));
 +void xvfprintf __P((xFILE *, const char *, va_list));
 +void xfprintf __P((xFILE *, const char *, ...));
- #ifdef        __STDC__
- int vsprintf(char *, const char *, va_list);
- #endif
  
 +int
  main(argc, argv)
        int argc;
        char *argv[];
-@@ -295,7 +297,7 @@ main(argc, argv)
+@@ -295,7 +294,7 @@
        while (H.Flines > 0) {
                ignorl(lseek(tfile, (off_t) ((blocks[b] & BLKMSK) * BUFSIZ),
                                        SEEK_SET));
@@ -77,7 +78,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
                        H.Flines * sizeof (line) : BUFSIZ;
                if (read(tfile, (char *) dot, i) != i) {
                        perror(nb);
-@@ -350,13 +352,14 @@ main(argc, argv)
+@@ -350,13 +349,14 @@
   * a newline which would screw up the screen.
   */
  /*VARARGS2*/
@@ -94,7 +95,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
        va_list ap;
  #endif
-@@ -384,8 +387,9 @@ error(char *str, ...)
+@@ -384,8 +384,9 @@
        exit(1);
  }
  
@@ -105,7 +106,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
        register DIR *dir;
  #ifndef       POSIX_1
-@@ -486,9 +490,11 @@ listfiles(dirname)
+@@ -486,9 +487,11 @@
  /*
   * Enter a new file into the saved file information.
   */
@@ -117,7 +118,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
        register char *cp, *cp2;
        register struct svfile *f, *fl;
-@@ -521,7 +527,7 @@ enter(fp, fname, count)
+@@ -521,7 +524,7 @@
        fp->sf_time = H.Time;
        fp->sf_lines = H.Flines;
        cp2 = fp->sf_name, cp = savedfile;
@@ -126,7 +127,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
        for (cp2 = fp->sf_entry, cp = fname; *cp && cp-fname < 14;)
                *cp2++ = *cp++;
        *cp2++ = 0;
-@@ -531,12 +537,13 @@ enter(fp, fname, count)
+@@ -531,12 +534,13 @@
   * Do the qsort compare to sort the entries first by file name,
   * then by modify time.
   */
@@ -141,7 +142,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
                return(t);
        if (p1->sf_time > p2->sf_time)
                return(-1);
-@@ -555,8 +562,9 @@ int        bestfd;                 /* Keep best file open so 
+@@ -555,8 +559,9 @@
   * (i.e. usually /tmp) and in /usr/preserve.
   * Want to find the newest so we search on and on.
   */
@@ -152,7 +153,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
  
        /*
-@@ -608,8 +616,9 @@ findtmp(dir)
+@@ -608,8 +613,9 @@
   * name of the file we want to unlink is relative, rather than absolute
   * we won't be able to find it again.
   */
@@ -163,7 +164,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
  #ifndef       POSIX_1
        struct direct *dirent;
-@@ -662,8 +671,9 @@ searchdir(dirname)
+@@ -662,8 +668,9 @@
   * if its really an editor temporary and of this
   * user and the file specified.
   */
@@ -174,7 +175,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
  
        tfile = open(name, O_RDWR);
-@@ -688,9 +698,10 @@ nope:
+@@ -688,9 +695,10 @@
        return (1);
  }
  
@@ -186,7 +187,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  }
  
  /*
-@@ -707,6 +718,7 @@ preserve()
+@@ -707,6 +715,7 @@
   * This only seems to happen on very heavily loaded systems, and
   * not very often.
   */
@@ -194,7 +195,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  scrapbad()
  {
        register line *ip;
-@@ -791,6 +803,7 @@ null:
+@@ -791,6 +800,7 @@
   * Aw shucks, if we only had a (void) cast.
   */
  #ifdef lint
@@ -202,7 +203,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  Ignorl(a)
        long a;
  {
-@@ -798,6 +811,7 @@ Ignorl(a)
+@@ -798,6 +808,7 @@
        a = a;
  }
  
@@ -210,7 +211,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  Ignore(a)
        char *a;
  {
-@@ -805,13 +819,15 @@ Ignore(a)
+@@ -805,13 +816,15 @@
        a = a;
  }
  
@@ -227,7 +228,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  ignorl(a)
        long a;
  {
-@@ -824,12 +840,15 @@ int      cntch, cntln, cntodd, cntnull;
+@@ -824,12 +837,15 @@
  /*
   * Following routines stolen mercilessly from ex.
   */
@@ -244,7 +245,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
        a1 = addr1;
        clrstats();
        cntln = addr2 - a1 + 1;
-@@ -861,12 +880,14 @@ putfile(unused)
+@@ -861,12 +877,14 @@
        cntch += nib;
  }
  
@@ -259,7 +260,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  clrstats()
  {
  
-@@ -880,6 +901,7 @@ clrstats()
+@@ -880,6 +898,7 @@
  #define       READ    0
  #define       WRITE   1
  
@@ -267,7 +268,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  get_line(tl)
        line tl;
  {
-@@ -890,7 +912,7 @@ get_line(tl)
+@@ -890,7 +909,7 @@
        bp = getblock(tl, READ);
        nl = nleft;
        tl &= ~OFFMSK;
@@ -276,7 +277,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
                if (--nl == 0) {
                        bp = getblock(tl += INCRMT, READ);
                        nl = nleft;
-@@ -934,8 +956,8 @@ getblock(atl, iof)
+@@ -934,8 +953,8 @@
        return (obuff + off);
  }
  
@@ -286,7 +287,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  blkio(bloc b, char *buf, ssize_t (*iofcn)(int, void *, size_t))
  #else /* !__STDC__ */
  blkio(b, buf, iofcn)
-@@ -950,6 +972,7 @@ blkio(b, buf, iofcn)
+@@ -950,6 +969,7 @@
                syserror();
  }
  
@@ -294,7 +295,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  syserror()
  {
  
-@@ -964,10 +987,11 @@ syserror()
+@@ -964,10 +984,11 @@
   * allocation and stdio uses malloc.
   */
  #ifndef       __STDC__
@@ -308,7 +309,7 @@ $NetBSD: patch-exrecover_c,v 1.2 2012/12
  {
        char buf[BUFSIZ];
  
-@@ -981,17 +1005,19 @@ xfprintf(fp, fmt, a1, a2, a3, a4, a5)
+@@ -981,17 +1002,19 @@
   * I do not know whether vsprintf() uses malloc() or not.
   * So this may be fail, too.
   */



Home | Main Index | Thread Index | Old Index