提交 d2dd6e06 编写于 作者: F fangting

codecheck问题整改

Issue: I7ONK3
Signed-off-by: Nfangting <fangting12@huawei.com>
上级 9eab551a
#include <stdlib.h>
#include "test.h"
__attribute__((constructor))
void B_ctor() {
exit(t_status);
__attribute__((constructor))
void Ctor()
{
exit(t_status);
}
int main() {
return t_status;
int main()
{
return t_status;
}
\ No newline at end of file
// from openbsd, will be rectified later
// from openbsd, will be rectified later
#include <string.h>
......@@ -11,8 +11,9 @@ size_t strcspn(const char *string1, const char *string2)
sc = *a++;
p = string2;
do {
if ((c = *p++) == sc)
if ((c = *p++) == sc) {
return (a - 1 - string1);
}
} while (c != 0);
}
/* NOTREACHED */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册