here is a patch for zaptel 1.4. sorry. not 1.2
*** ./test/ztmonitor.c.bak      Wed Jan  3 03:05:55 2007
--- ./test/ztmonitor.c  Sun Mar 11 16:52:07 2007
***************
*** 33,39 ****
    */

   #include <stdio.h>
! #include <getopt.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
--- 33,39 ----
    */

   #include <stdio.h>
! #include <unistd.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
*** ./test/zttool.c.bak Wed Jan  3 03:05:55 2007
--- ./test/zttool.c     Sun Mar 11 16:52:07 2007
***************
*** 35,41 ****
   /* $Id: zttool.c 841 2004-06-16 15:48:58Z gonzo $ */

   #include <stdio.h>
! #include <getopt.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
--- 35,41 ----
   /* $Id: zttool.c 841 2004-06-16 15:48:58Z gonzo $ */

   #include <stdio.h>
! #include <unistd.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
*** ./oct612x/octdeviceapi/oct6100api/oct6100_api/ 
oct6100_channel.c.bak Mon Mar 12 11:36:45 2007
--- ./oct612x/octdeviceapi/oct6100api/oct6100_api/ 
oct6100_channel.c     Mon Mar 12 12:04:45 2007
***************
*** 3556,3564 ****
         tOCT6100_CHANNEL_OPEN   *pTempChanOpen;

         /* We don't want this 290 byte structure on the stack */
!       pTempChanOpen = kmalloc(sizeof(*pTempChanOpen), GFP_ATOMIC);
         if (!pTempChanOpen)
                 return cOCT6100_ERR_CHANNEL_NOT_OPEN;

         /* Check the user's configuration of the echo cancellation  
channel for errors. */
         ulResult = Oct6100ApiCheckChannelModify( f_pApiInstance,
--- 3556,3565 ----
         tOCT6100_CHANNEL_OPEN   *pTempChanOpen;

         /* We don't want this 290 byte structure on the stack */
!       pTempChanOpen = malloc(sizeof(*pTempChanOpen));
         if (!pTempChanOpen)
                 return cOCT6100_ERR_CHANNEL_NOT_OPEN;
+       bzero(pTempChanOpen, sizeof(*pTempChanOpen));

         /* Check the user's configuration of the echo cancellation  
channel for errors. */
         ulResult = Oct6100ApiCheckChannelModify( f_pApiInstance,
***************
*** 3608,3614 ****
                                                                         
                   usNewRoutTsstIndex,
                                                                         
                   usNewSoutTsstIndex  );
   out:
!       kfree(pTempChanOpen);

         return ulResult;
   }
--- 3609,3615 ----
                                                                         
                   usNewRoutTsstIndex,
                                                                         
                   usNewSoutTsstIndex  );
   out:
!       free(pTempChanOpen);

         return ulResult;
   }
*** ./oct612x/Makefile.bak      Sun Mar 11 23:30:46 2007
--- ./oct612x/Makefile  Mon Mar 12 13:13:01 2007
***************
*** 1,4 ****
! CFLAGS=-ffunction-sections -Iinclude -Ioctdeviceapi -Ioctdeviceapi/ 
oct6100api -DGFP_ATOMIC=0 -Dkmalloc=calloc -Dkfree=free
   LDFLAGS=-V3.4 -Wl,-Map -Wl,test.map -Wl,--gc-sections

   APIDIR=octdeviceapi/oct6100api/oct6100_api
--- 1,4 ----
! CFLAGS=-ffunction-sections -Iinclude -Ioctdeviceapi -Ioctdeviceapi/ 
oct6100api -DGFP_ATOMIC=0
   LDFLAGS=-V3.4 -Wl,-Map -Wl,test.map -Wl,--gc-sections

   APIDIR=octdeviceapi/oct6100api/oct6100_api
*** ./ztcfg/ztcfg.c.bak Thu Jan 11 02:13:15 2007
--- ./ztcfg/ztcfg.c     Sun Mar 11 16:52:07 2007
***************
*** 31,37 ****
   /* $Id */

   #include <stdio.h>
! #include <getopt.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
--- 31,37 ----
   /* $Id */

   #include <stdio.h>
! #include <unistd.h>
   #include <string.h>
   #include <stdarg.h>
   #include <stdlib.h>
_______________________________________________
Asterisk-BSD mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Reply via email to