diff options
Diffstat (limited to 'sysutils/smartmontools/patches/patch-ab')
-rw-r--r-- | sysutils/smartmontools/patches/patch-ab | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sysutils/smartmontools/patches/patch-ab b/sysutils/smartmontools/patches/patch-ab deleted file mode 100644 index 8dd08035d59..00000000000 --- a/sysutils/smartmontools/patches/patch-ab +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-ab,v 1.8 2006/09/24 17:14:55 martin Exp $ - ---- ataprint.c.orig 2006-04-12 16:54:28.000000000 +0200 -+++ ataprint.c 2006-09-24 18:47:09.000000000 +0200 -@@ -95,11 +95,12 @@ - char tmp[65]; - - n = n > 64 ? 64 : n; --#ifndef __NetBSD__ -- swapbytes(tmp, in, n); --#else -- strncpy(tmp, in, n); /* NetBSD delivers host byte order strings */ -+#ifdef __NetBSD__ -+ if (isbigendian()) -+ strncpy(tmp, in, n); -+ else - #endif -+ swapbytes(tmp, in, n); - tmp[n] = '\0'; - trim(out, tmp); - } |