pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/elizatalk minor cleanup to make it build with mod...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/428b491acf27
branches:  trunk
changeset: 480461:428b491acf27
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Sep 10 12:02:53 2004 +0000

description:
minor cleanup to make it build with modern gcc again
(lots of unchecked string ops here...)

diffstat:

 misc/elizatalk/distinfo         |   4 +-
 misc/elizatalk/patches/patch-ab |  61 +++++++++++++++++++++++++++++++++++++++-
 2 files changed, 61 insertions(+), 4 deletions(-)

diffs (85 lines):

diff -r a3a497dc53b6 -r 428b491acf27 misc/elizatalk/distinfo
--- a/misc/elizatalk/distinfo   Fri Sep 10 11:33:35 2004 +0000
+++ b/misc/elizatalk/distinfo   Fri Sep 10 12:02:53 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/03/01 13:02:10 jlam Exp $
+$NetBSD: distinfo,v 1.2 2004/09/10 12:02:53 drochner Exp $
 
 SHA1 (elizatalk-0.4.tar.gz) = 8d5d1931fcd3d014b63d27d1c893661941800f84
 Size (elizatalk-0.4.tar.gz) = 116369 bytes
 SHA1 (patch-aa) = 4c8e1702707636cc3ef516b1a9a26f743d8b5f39
-SHA1 (patch-ab) = e3eac085d8a410771b8ce97079decaa0a656cc45
+SHA1 (patch-ab) = b39c87a6ec89403d14fab195b4e4dd0d48c4e2be
diff -r a3a497dc53b6 -r 428b491acf27 misc/elizatalk/patches/patch-ab
--- a/misc/elizatalk/patches/patch-ab   Fri Sep 10 11:33:35 2004 +0000
+++ b/misc/elizatalk/patches/patch-ab   Fri Sep 10 12:02:53 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.1.1.1 2003/03/01 13:02:11 jlam Exp $
+$NetBSD: patch-ab,v 1.2 2004/09/10 12:02:54 drochner Exp $
 
---- splotch.c.orig     Mon Oct 23 04:37:56 2000
+--- splotch.c.orig     2000-10-23 13:37:56.000000000 +0200
 +++ splotch.c
 @@ -17,9 +17,12 @@
  #define NAME      "Eliza"    /* name of robot */
@@ -18,3 +18,60 @@
  #define DEBUG 0                /* debug flag */
  #define VERBOSE 0              /* verbose errors */
  #define DEB 0
+@@ -40,7 +43,6 @@ FILE   *dfile;               /* file poi
+ int    maxtempl;             /* templ[maxtempl] is last entry */
+ int    oldkeywd[SP_HIST];    /* queue of indices of most recent keys */
+ 
+-char *strcasestr();
+ char *phrasefind();
+ char *lower();
+ 
+@@ -549,7 +551,7 @@ char *lower(s)
+ char  *s;
+ {
+   int i;
+-  char tmp[400];
++  static char tmp[400];
+   
+   for (i=0; s[i]; ++i)
+     tmp[i] = tolower(s[i]);
+@@ -642,30 +644,6 @@ char fname[50];
+ 
+ 
+ 
+-/*********************************
+-strcasestr()
+-**********************************/
+-char *strcasestr (s1, s2)
+-char *s1, *s2;
+-{
+-
+-        char n1[256], n2[256];
+-        int j;
+-
+-        for (j=0;s1[j] != '\0';j++)
+-                n1[j] = toupper (s1[j]);
+-        n1[j] = '\0';
+-        for (j=0;s2[j] != '\0';j++)
+-                n2[j] = toupper (s2[j]);
+-        n2[j] = '\0';
+-       
+-        return (strstr (n1, n2));
+-}
+-
+-
+-
+-
+-
+ 
+ 
+ 
+@@ -706,7 +684,7 @@ trytempl(question)
+       firstime=0;
+       }
+       else
+-       key=strtok(key[strlen(key)], ":\n");
++       key=strtok(0, ":\n");
+       if (key == NULL) {
+       done=1;
+       break;



Home | Main Index | Thread Index | Old Index