summaryrefslogtreecommitdiff
path: root/comms/bthfp/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-09-10 14:13:40 +0000
committerjoerg <joerg@pkgsrc.org>2013-09-10 14:13:40 +0000
commit89e3f26ba8090a6d41f0adcb2ff7bebf0658f773 (patch)
tree52d297d0187b7013522ceb06391f537a0c8f4b9f /comms/bthfp/patches
parentfbc9024866144ef173487a9d966d8001bbe42f71 (diff)
downloadpkgsrc-89e3f26ba8090a6d41f0adcb2ff7bebf0658f773.tar.gz
Fix printf argument type. Handle errors properly. Bump revision.
Diffstat (limited to 'comms/bthfp/patches')
-rw-r--r--comms/bthfp/patches/patch-aa22
1 files changed, 20 insertions, 2 deletions
diff --git a/comms/bthfp/patches/patch-aa b/comms/bthfp/patches/patch-aa
index 0db77888d52..4c6570f66c5 100644
--- a/comms/bthfp/patches/patch-aa
+++ b/comms/bthfp/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.1 2008/06/21 20:47:28 joerg Exp $
+$NetBSD: patch-aa,v 1.2 2013/09/10 14:13:40 joerg Exp $
---- bthfp.c.orig 2008-06-21 14:42:12.000000000 +0000
+--- bthfp.c.orig 2006-09-13 08:16:29.000000000 +0000
+++ bthfp.c
@@ -480,8 +480,8 @@ accept_sco(int fd, short ev, void *arg)
@@ -13,3 +13,21 @@ $NetBSD: patch-aa,v 1.1 2008/06/21 20:47:28 joerg Exp $
close(sc);
sc = -1;
return;
+@@ -854,7 +854,7 @@ recv_rfcomm(int fd, short ev, void *arg)
+ {
+ struct result_code *rc;
+ char buf[256], *code, *next;
+- size_t len;
++ ssize_t len;
+
+ /* XXX what if buf is not large enough? */
+
+@@ -895,7 +895,7 @@ recv_rfcomm(int fd, short ev, void *arg)
+ len -= 2;
+
+ if (verbose)
+- printf("> %.*s\n", next - code, code);
++ printf("> %.*s\n", (int)(next - code), code);
+
+ for (rc = result_codes ; rc->code != NULL ; rc++) {
+ if (strncmp(code, rc->code, rc->strlen) == 0) {