diff options
Diffstat (limited to 'math/fricas/patches/patch-ab')
-rw-r--r-- | math/fricas/patches/patch-ab | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/math/fricas/patches/patch-ab b/math/fricas/patches/patch-ab deleted file mode 100644 index 199b1ea0b5a..00000000000 --- a/math/fricas/patches/patch-ab +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ab,v 1.1 2009/12/15 23:36:29 asau Exp $ - -Reuse strcmp to simplify logic and fix build. -Shared between FriCAS and OpenAxiom. - ---- src/hyper/addfile.c.orig 2009-07-10 00:50:28.000000000 +0400 -+++ src/hyper/addfile.c 2009-12-15 22:32:55.000000000 +0300 -@@ -50,13 +50,7 @@ - strpostfix(char *s, char *t) - { - int slen = strlen(s), tlen = strlen(t); -- -- if (tlen > slen) -- return 0; -- while (tlen > 0) -- if (s[--slen] != t[--tlen]) -- return 0; -- return 1; -+ return (tlen < slen) && !strcmp(s+slen-tlen, t); - } - - /* extend_ht : just checks the name and adds a .ht if needed */ |