aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2008-12-26 11:04:52 +0800
committermarcus <marcus@FreeBSD.org>2008-12-26 11:04:52 +0800
commite010f36a0f692b351a48d127bf26983eb9e33d6e (patch)
tree0272f96ef3246427589616ebba277db751939b0b /textproc
parentd6415b47e629580a4cd91f9574aec6e1c840a66b (diff)
downloadfreebsd-ports-gnome-e010f36a0f692b351a48d127bf26983eb9e33d6e.tar.gz
freebsd-ports-gnome-e010f36a0f692b351a48d127bf26983eb9e33d6e.tar.zst
freebsd-ports-gnome-e010f36a0f692b351a48d127bf26983eb9e33d6e.zip
Remove strndup declaration as it is not used by scrollkeeper.
Diffstat (limited to 'textproc')
-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)