Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蚂蚁寻路
zoompipeline
提交
69512a37
zoompipeline
项目概览
蚂蚁寻路
/
zoompipeline
与 Fork 源项目一致
Fork自
colorEagleStdio / zoompipeline
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
zoompipeline
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
69512a37
编写于
4月 14, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix a bug. sizeof operator in C/C++ never returns 0, so, an empty struct's size is 1!
上级
56098b56
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
FunctionalClientTest/maindialog.cpp
FunctionalClientTest/maindialog.cpp
+3
-3
ZoomPipeline_FuncSvr/smartlink/st_clientnode_applayer.cpp
ZoomPipeline_FuncSvr/smartlink/st_clientnode_applayer.cpp
+3
-3
未找到文件。
FunctionalClientTest/maindialog.cpp
浏览文件 @
69512a37
...
...
@@ -311,7 +311,7 @@ void MainDialog::on_pushButton_CrTime_clicked()
}
saveIni
();
quint16
nMsgLen
=
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_HostTimeCorrectReq
)
;
/*+sizeof(stMsg_HostTimeCorrectReq)*/
;
QByteArray
array
(
sizeof
(
SMARTLINK_MSG
)
+
nMsgLen
-
1
,
0
);
char
*
ptr
=
array
.
data
();
SMARTLINK_MSG
*
pMsg
=
(
SMARTLINK_MSG
*
)
ptr
;
...
...
@@ -405,7 +405,7 @@ void MainDialog::on_pushButton_box_download_uid_clicked()
}
saveIni
();
quint16
nMsgLen
=
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_DownloadUserListReq
)
;
/*+sizeof(stMsg_DownloadUserListReq)*/
;
QByteArray
array
(
sizeof
(
SMARTLINK_MSG
)
+
nMsgLen
-
1
,
0
);
char
*
ptr
=
array
.
data
();
SMARTLINK_MSG
*
pMsg
=
(
SMARTLINK_MSG
*
)
ptr
;
...
...
@@ -446,7 +446,7 @@ void MainDialog::on_pushButton_client_downHost_clicked()
}
saveIni
();
quint16
nMsgLen
=
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_GetHostListReq
)
;
/*+sizeof(stMsg_GetHostListReq)*/
;
QByteArray
array
(
sizeof
(
SMARTLINK_MSG
)
+
nMsgLen
-
1
,
0
);
char
*
ptr
=
array
.
data
();
SMARTLINK_MSG
*
pMsg
=
(
SMARTLINK_MSG
*
)
ptr
;
...
...
ZoomPipeline_FuncSvr/smartlink/st_clientnode_applayer.cpp
浏览文件 @
69512a37
...
...
@@ -346,7 +346,7 @@ namespace SmartLink{
if
(
m_currentMessageSize
!=
sizeof
(
SMARTLINK_MSG
)
-
1
+
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_HostTimeCorrectReq
)
)
/*+ sizeof (stMsg_HostTimeCorrectReq)*/
)
{
emit
evt_Message
(
tr
(
"Broken Message stMsg_HostRegistReq, size not correct."
));
res
=
false
;
...
...
@@ -376,7 +376,7 @@ namespace SmartLink{
if
(
m_currentMessageSize
!=
sizeof
(
SMARTLINK_MSG
)
-
1
+
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_DownloadUserListReq
)
)
/*+ sizeof (stMsg_DownloadUserListReq)*/
)
{
emit
evt_Message
(
tr
(
"Broken Message stMsg_DownloadUserListReq, size not correct."
));
res
=
false
;
...
...
@@ -406,7 +406,7 @@ namespace SmartLink{
if
(
m_currentMessageSize
!=
sizeof
(
SMARTLINK_MSG
)
-
1
+
sizeof
(
SMARTLINK_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_GetHostListReq
)
)
/*+ sizeof (stMsg_GetHostListReq)*/
)
{
emit
evt_Message
(
tr
(
"Broken Message stMsg_GetHostListReq, size not correct."
));
res
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录