summaryrefslogtreecommitdiff
path: root/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2019-09-05 20:16:56 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2019-09-05 20:16:56 +0000
commit7b769dc632fb8828b0618aa8f4cde1f9011fd017 (patch)
tree68fad202c764c71751abf7be79ad4be7bf06dda7 /benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
parent- no longer hosting distfiles (diff)
Update to 1.98 and fix type conversion warnings
PR: 210855 Submitted by: Mark Millard <marklmi26-fbsd@yahoo.com> Reviewed by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Diffstat (limited to 'benchmarks/bonnie++/files/patch-getc_putc_helper.cpp')
-rw-r--r--benchmarks/bonnie++/files/patch-getc_putc_helper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp b/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
new file mode 100644
index 000000000000..a7edca3b1b6c
--- /dev/null
+++ b/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
@@ -0,0 +1,11 @@
+--- getc_putc_helper.cpp.orig 2009-07-03 04:26:05.000000000 +0200
++++ getc_putc_helper.cpp 2019-09-05 12:09:25.707876000 +0200
+@@ -45,7 +45,7 @@
+ return 1;
+ }
+ fflush(NULL);
+- TEST_FUNC_READ("getc() no thread", if( (c = getc(fp)) == EOF), res[1]);
++ TEST_FUNC_READ("getc() no thread", int tmp = getc(fp); c = (char)tmp; if (tmp == EOF), res[1]);
+ if(fseek(fp, 0, SEEK_SET) != 0)
+ {
+ fprintf(stderr, "Can't seek.\n");