diff options
author | martin <martin@pkgsrc.org> | 2001-03-11 16:22:08 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2001-03-11 16:22:08 +0000 |
commit | db088e5012e9a64318a228b808d7ae3499262e3c (patch) | |
tree | 66f5f3f28f0ece1df4b579b760d3f67902f9de16 | |
parent | f36f0d3802c198309b1d10821ab5367924abb1fa (diff) | |
download | pkgsrc-db088e5012e9a64318a228b808d7ae3499262e3c.tar.gz |
Make this LP64 save.
-rw-r--r-- | sysutils/ups-nut/files/patch-sum | 4 | ||||
-rw-r--r-- | sysutils/ups-nut/patches/patch-af | 13 | ||||
-rw-r--r-- | sysutils/ups-nut/patches/patch-ag | 13 |
3 files changed, 29 insertions, 1 deletions
diff --git a/sysutils/ups-nut/files/patch-sum b/sysutils/ups-nut/files/patch-sum index 4d2d379e8cf..b93bac912db 100644 --- a/sysutils/ups-nut/files/patch-sum +++ b/sysutils/ups-nut/files/patch-sum @@ -1,7 +1,9 @@ -$NetBSD: patch-sum,v 1.2 2001/03/11 13:46:12 martin Exp $ +$NetBSD: patch-sum,v 1.3 2001/03/11 16:22:08 martin Exp $ SHA1 (patch-aa) = 2919c36f928d7b3a22574f8ca0633cd11bb99c70 SHA1 (patch-ab) = da464964fd63f2c3cb34d06f2d6de9e5c1aa356a SHA1 (patch-ac) = 3713ae0f24c70789a85b8636db2864148b09a2b7 SHA1 (patch-ad) = 2e325eb1a8bd85ef81d265df76e866d8a31a6b57 SHA1 (patch-ae) = a895fb6f94730db349375b46e4649257cebdcc58 +SHA1 (patch-af) = 6bc9661388928d6a294cdfa156e77aa5fe9669cb +SHA1 (patch-ag) = e46760b14601313ddd61c40a09965c01be9060fb diff --git a/sysutils/ups-nut/patches/patch-af b/sysutils/ups-nut/patches/patch-af new file mode 100644 index 00000000000..cf36063175b --- /dev/null +++ b/sysutils/ups-nut/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1 2001/03/11 16:22:08 martin Exp $ + +--- clients/upslog.c.orig Tue Feb 27 05:27:32 2001 ++++ clients/upslog.c Sun Mar 11 17:14:20 2001 +@@ -222,7 +222,7 @@ + else if (strncasecmp(cmpstr, "ETIME", 5) == 0) { + char timebuf[16]; + +- snprintf (timebuf, sizeof(timebuf), "%ld", tod); ++ snprintf (timebuf, sizeof(timebuf), "%ld", (unsigned long)tod); + strlcat(logbuffer, timebuf, sizeof(logbuffer)); + logbufremain -= strlen(timebuf); + } diff --git a/sysutils/ups-nut/patches/patch-ag b/sysutils/ups-nut/patches/patch-ag new file mode 100644 index 00000000000..596db8b5e9a --- /dev/null +++ b/sysutils/ups-nut/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1 2001/03/11 16:22:08 martin Exp $ + +--- models/mge-ellipse.c.orig Tue Feb 27 05:36:19 2001 ++++ models/mge-ellipse.c Sun Mar 11 17:13:07 2001 +@@ -695,7 +695,7 @@ + start = buf; + fprintf(stderr,"%s: (%d bytes)\n", msg, len); + while (len > 0) { +- snprintf(line, sizeof(line), "%08x: ", buf - start); ++ snprintf(line, sizeof(line), "%08lx: ", (unsigned long)(buf - start)); + out = line + 10; + + for (i = 0, pc = buf, nlocal = len; i < 16; i++, pc++) { |