aboutsummaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-zaptel::zt_zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/zaptel/files/patch-zaptel::zt_zone.c')
-rw-r--r--misc/zaptel/files/patch-zaptel::zt_zone.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/zaptel/files/patch-zaptel::zt_zone.c b/misc/zaptel/files/patch-zaptel::zt_zone.c
new file mode 100644
index 000000000000..90eb02ab5761
--- /dev/null
+++ b/misc/zaptel/files/patch-zaptel::zt_zone.c
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- zaptel/zt_zone.c
++++ zaptel/zt_zone.c
+@@ -326,7 +326,7 @@
+ int x;
+ int space;
+ int res;
+- int addr;
++ unsigned long addr;
+
+ /* XXX Unnecessary XXX */
+ memset(samples, 0, sizeof(samples));
+@@ -334,7 +334,7 @@
+ memset(next, 0, sizeof(next));
+ memset(&th, 0, sizeof(th));
+
+- bcopy((void *)data, &addr, 4);
++ bcopy((void *)data, &addr, sizeof(addr));
+ data = addr;
+ if(copyin( (caddr_t)addr, &th, sizeof(th)))
+ printf("copyin failed\n");