提交 1d4a72ad 编写于 作者: G Gymee 提交者: openharmony_ci

!3 [Lightweight PR]: remove redundant extern "C" in .c file

Merge pull request !3 from Gymee/N/A
上级 a0a535a0
......@@ -16,12 +16,6 @@
#include <stdio.h>
#include <sys/prctl.h>
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
int KeepCapability()
{
#ifdef __LINUX__
......@@ -32,9 +26,3 @@ int KeepCapability()
#endif
return 0;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cpluscplus */
#endif /* __cpluscplus */
......@@ -22,12 +22,6 @@
#include "ohos_errno.h"
#include "securec.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
static const size_t MAX_BUNDLE_NAME_LEN = 127;
static const size_t MIN_BUNDLE_NAME_LEN = 7;
static const size_t MAX_SHARED_LIB_PATH_LEN = 2048;
......@@ -144,10 +138,4 @@ int SplitMessage(const char* msg, unsigned int msgLen, MessageSt* msgSt)
return EC_PROTOCOL;
}
return EC_SUCCESS;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cpluscplus */
#endif /* __cpluscplus */
}
\ No newline at end of file
......@@ -23,12 +23,6 @@
#include "log.h"
#include "securec.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
#define DEFAULT_UMASK 022
#define CAP_NUM 2
#define ABILITY_EXE_FILE_FULL_PATH "/bin/abilityMain"
......@@ -174,10 +168,4 @@ pid_t CreateProcess(const MessageSt* msgSt)
free(envStr);
return newPID;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cpluscplus */
#endif /* __cpluscplus */
}
\ No newline at end of file
......@@ -26,12 +26,6 @@
#include "samgr_lite.h"
#include "service.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
static const int INVALID_PID = -1;
typedef struct AppSpawnFeatureApi {
......@@ -159,10 +153,4 @@ void AppSpawnInit(void)
HILOG_INFO(HILOG_MODULE_HIVIEW, "[appspawn] register featureapi succeed.");
}
SYSEX_SERVICE_INIT(AppSpawnInit);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cpluscplus */
#endif /* __cpluscplus */
SYSEX_SERVICE_INIT(AppSpawnInit);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册