| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 679 人关注过本帖
标题:[求助]程序出错 大家来看看啊
只看楼主 加入收藏
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
收藏
 问题点数:0 回复次数:6 
[求助]程序出错 大家来看看啊
warning: passing arg 1 of `IPFilterInitialize' makes poin
ter from integer without a cast
D:\test\ipfilter\ipfilter.c:430: warning: passing arg 1 of `UpdateIdListTtl' makes pointer
from integer without a cast
D:\test\ipfilter\ipfilter.c:431: warning: passing arg 1 of `AutoDeleteIdList' makes pointe
r from integer without a cast
D:\test\ipfilter\ipfilter.c:436: warning: passing arg 1 of `UpdateIdListTtl' makes pointer
from integer without a cast
D:\test\ipfilter\ipfilter.c:437: warning: passing arg 1 of `AutoDeleteIdList' makes pointe
r from integer without a cast

上面是错误
if(IPFilterInitialize(pIdList))
{
if(IsValidHeader(Packet, PacketLength))
{
if(pIp->Offset == 0x02)
{
UpdateIdListTtl(pIdList);
AutoDeleteIdList(pIdList);
return CheckIdList(Packet);
}
else
{
UpdateIdListTtl(pIdList);
AutoDeleteIdList(pIdList);
return CheckAccessList(Packet, &AcsListHeader, pIdList);
下面是程序 高手给看看啊 谢谢......

搜索更多相关主题的帖子: ipfilter arg passing warning cast 
2006-06-13 10:28
baidu
Rank: 3Rank: 3
等 级:新手上路
威 望:8
帖 子:3811
专家分:0
注 册:2005-11-4
收藏
得分:0 
pIdList定义有问题吧

偶放弃所有文章版权,偶在BCCN论坛任何贴子,可转贴,可散发,可抄袭,可复制,可被冒名顶替,可被任何人引用到任何文章中且不写出引文出处,偶分文不取。
2006-06-13 10:55
走刀口→超
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:5018
专家分:0
注 册:2006-3-14
收藏
得分:0 
看不懂。无能为力~呵呵~~~这是什么呀?压根没看明白。。。

人在江湖【走】,怎能不挨【刀】;为了能活【口】,唯有把己【超】!come on...
2006-06-13 11:06
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
收藏
得分:0 
改好了 谢谢 唉 DEBUG真是一件痛苦的事情啊

2006-06-13 11:10
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
收藏
得分:0 
做一个防火墙的程序 建立在TCP/IP的基础上的 呵呵 只是上来问问代码的问题而已 还有十几个错误呢 唉

2006-06-13 11:12
走刀口→超
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:5018
专家分:0
注 册:2006-3-14
收藏
得分:0 
在迷糊中倒下。。。T。T

人在江湖【走】,怎能不挨【刀】;为了能活【口】,唯有把己【超】!come on...
2006-06-13 11:17
罗彬
Rank: 1
等 级:新手上路
帖 子:141
专家分:0
注 册:2006-4-24
收藏
得分:0 

我晕,咱从来都没看过呢


2006-06-13 12:51
快速回复:[求助]程序出错 大家来看看啊
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017781 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved