aboutsummaryrefslogtreecommitdiff
path: root/textproc/scrollkeeper
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-12-26 03:04:52 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-12-26 03:04:52 +0000
commit6cb3df0ae33f77c23c9dcd800c63b9a2a55070f6 (patch)
tree16a26a42b7356343a3fdbea2d80a061a926eb804 /textproc/scrollkeeper
parent578fbaf4bbe869b091e265970f7b0136a6d7a28a (diff)
downloadports-6cb3df0ae33f77c23c9dcd800c63b9a2a55070f6.tar.gz
ports-6cb3df0ae33f77c23c9dcd800c63b9a2a55070f6.zip
Remove strndup declaration as it is not used by scrollkeeper.
Notes
Notes: svn path=/head/; revision=224787
Diffstat (limited to 'textproc/scrollkeeper')
-rw-r--r--textproc/scrollkeeper/files/patch-libs_i18n.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/textproc/scrollkeeper/files/patch-libs_i18n.c b/textproc/scrollkeeper/files/patch-libs_i18n.c
index 3e5f387301e6..16813a955b7e 100644
--- a/textproc/scrollkeeper/files/patch-libs_i18n.c
+++ b/textproc/scrollkeeper/files/patch-libs_i18n.c
@@ -1,25 +1,5 @@
--- libs/i18n.c.orig Sun Nov 9 18:05:36 2003
+++ libs/i18n.c Tue Feb 14 18:50:23 2006
-@@ -38,6 +38,19 @@ enum {
- * All rights reserved.
- */
-
-+/* XXX Implement strndup for FreeBSD. */
-+static char *
-+strndup(const char *str, size_t len) {
-+ char *ret;
-+
-+ if ((str == NULL || len < 0)) return(NULL);
-+ ret = (char *)malloc(len + 1);
-+ if (ret == NULL) return(NULL);
-+ strncpy(ret, str, len);
-+ ret[len] = '\0';
-+ return(ret);
-+}
-+
- /* Support function for compute_locale_variants. */
- static int explode_locale(const char *locale, char **language,
- char **territory, char **codeset, char **modifier)
@@ -118,7 +131,7 @@ static char **compute_locale_variants(co
if ((i & ~mask) == 0) {
int length = strlen(language) + strlen(territory)