summaryrefslogtreecommitdiff
path: root/benchmarks/super-smack/files/patch-src_query.cc
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-27 15:09:11 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-27 15:09:11 +0000
commit56bf85096cc89f91d28671b5d93b4172240263bc (patch)
tree0574ce9eee45d627f943b80b2445882a762b52af /benchmarks/super-smack/files/patch-src_query.cc
parentAdd new port -- Rounded Mgen+ Japanese TrueType fonts (diff)
Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
Diffstat (limited to 'benchmarks/super-smack/files/patch-src_query.cc')
-rw-r--r--benchmarks/super-smack/files/patch-src_query.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/super-smack/files/patch-src_query.cc b/benchmarks/super-smack/files/patch-src_query.cc
new file mode 100644
index 000000000000..ef4e688e8ea8
--- /dev/null
+++ b/benchmarks/super-smack/files/patch-src_query.cc
@@ -0,0 +1,20 @@
+--- src/query.cc.orig 2005-04-30 13:51:29 UTC
++++ src/query.cc
+@@ -197,7 +197,7 @@ void Query_report::fd_send(int fd)
+ {
+ string s((*i).first);
+ int str_len = (*i).first.length();
+- if((unsigned)p + str_len + 3 *sizeof(int) < (unsigned)p_end )
++ if(p + str_len + 3 *sizeof(int) < p_end )
+ {
+ *p++ = (char) str_len;
+ const char* q_type_name = s.c_str();
+@@ -216,7 +216,7 @@ void Query_report::fd_send(int fd)
+ die(0, "report buffer overflow -- too many query types");
+ }
+
+- len = (unsigned)p - (unsigned)buf;
++ len = p - buf;
+ *(buf) = num_recs;
+
+ if(write(fd, buf, len) != len)