chore: conform to the code style.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I9ccf0f56ec79f200f59a917b08d1638c75b54024
This commit is contained in:
yudechen
2022-08-19 11:25:43 +08:00
parent ceac24d420
commit 9188b34ce6
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -19,7 +19,11 @@
#include <stdint.h>
#define SINGLE_SYSCAP_LEN (256 + 17)
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
typedef struct SystemCapabilityWithNum {
char str[SINGLE_SYSCAP_LEN];
uint16_t num;
@@ -401,4 +405,9 @@ const static SyscapWithNum g_arraySyscap[] = {
{"SystemCapability.Utils.Lang", UTILS_LANG},
};
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif // _SYSCAP_DEFINE_H
+1 -1
View File
@@ -183,7 +183,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
}
FreeContextBuffer(contextBuffer);
*outputLen = strlen(outputStr);
*outputLen = (int)strlen(outputStr);
*output = outputStr;
return true;
}