aboutsummaryrefslogtreecommitdiffstats
path: root/misc/zaptel/files/patch-zaptel::zt_zone.c
blob: 90eb02ab5761a9622e4de712d33de5e9237b84ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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");