提交 e73424f3 authored 作者: Michael Jerris's avatar Michael Jerris

tweak types

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@53 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 8f340bf0
...@@ -90,7 +90,7 @@ struct iphdr { ...@@ -90,7 +90,7 @@ struct iphdr {
/* what should the returns from this function be?? */ /* what should the returns from this function be?? */
/* I dont think they are currently consistant between windows and *nix */ /* I dont think they are currently consistant between windows and *nix */
#ifdef __WINDOWS__ #ifdef __WINDOWS__
static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_cmd_t *tdm_api_cmd) static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_t *tdm_api_cmd)
{ {
/* can we make the structure passed for this on nix and windows the same */ /* can we make the structure passed for this on nix and windows the same */
/* so we don't have to do the extra 2 memcpy's on windows for this ? */ /* so we don't have to do the extra 2 memcpy's on windows for this ? */
...@@ -129,7 +129,7 @@ static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_cmd_t *tdm_api ...@@ -129,7 +129,7 @@ static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_cmd_t *tdm_api
} }
#else #else
static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_cmd_t *tdm_api_cmd) static __inline__ int tdmv_api_ioctl(sng_fd_t fd, wanpipe_tdm_api_t *tdm_api_cmd)
{ {
return ioctl(fd, SIOC_WANPIPE_TDM_API, tdm_api_cmd); return ioctl(fd, SIOC_WANPIPE_TDM_API, tdm_api_cmd);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论