diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-11-21 23:37:51 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-11-21 23:37:51 +0800 |
commit | bd44bcfeda247454fd0b28cda212f082fc5d93b2 (patch) | |
tree | 17b497a10d0e8ae8ff02212e97fb19591f17331a /sysutils | |
parent | 0ed51f7848db60365364cded73be7d333ab70772 (diff) | |
download | freebsd-ports-gnome-bd44bcfeda247454fd0b28cda212f082fc5d93b2.tar.gz freebsd-ports-gnome-bd44bcfeda247454fd0b28cda212f082fc5d93b2.tar.zst freebsd-ports-gnome-bd44bcfeda247454fd0b28cda212f082fc5d93b2.zip |
- Fix build on 10.0-i386
Reported by: pkg-fallout
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/nfsping/files/patch-src__nfsping.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/nfsping/files/patch-src__nfsping.c b/sysutils/nfsping/files/patch-src__nfsping.c new file mode 100644 index 000000000000..56757c9c28dd --- /dev/null +++ b/sysutils/nfsping/files/patch-src__nfsping.c @@ -0,0 +1,23 @@ +--- ./src/nfsping.c.orig 2013-11-21 09:36:28.914158570 -0600 ++++ ./src/nfsping.c 2013-11-21 09:36:58.050495553 -0600 +@@ -84,9 +84,9 @@ + printf("%s : [%u], %03.2f ms (%03.2f avg, %.0f%% loss)\n", target->name, target->sent - 1, us / 1000.0, target->avg / 1000.0, loss); + } else if (format == graphite) { + if (prognum == MOUNTPROG) { +- printf("%s.%s.mount.usec %lu %li\n", prefix, target->ndqf, us, now.tv_sec); ++ printf("%s.%s.mount.usec %lu %li\n", prefix, target->ndqf, us, (long)now.tv_sec); + } else { +- printf("%s.%s.ping.usec %lu %li\n", prefix, target->ndqf, us, now.tv_sec); ++ printf("%s.%s.ping.usec %lu %li\n", prefix, target->ndqf, us, (long)now.tv_sec); + } + } + } +@@ -96,7 +96,7 @@ + /* send to stdout even though it could be considered an error, presumably these are being piped somewhere */ + /* stderr prints the errors themselves which can be discarded */ + if (format == graphite) { +- printf("%s.%s.ping.lost 1 %li\n", prefix, target->name, now.tv_sec); ++ printf("%s.%s.ping.lost 1 %li\n", prefix, target->name, (long)now.tv_sec); + } + } + |