Match-id-38e2eab15a40447f44b5c119a3c68cb14e9a3847

This commit is contained in:
BianTanggui
2020-09-08 21:12:39 +08:00
parent e0a5edfd03
commit 4a3a338ea2
5 changed files with 3 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ bool CheckSubStr(char **pLine, const char *subsys)
}
typedef char *(*ParseFileLine)(char *, const char *);
int ParseFileByLine(char* buffer, int bufferSize, ParseFileLine fn, const char* filepath)
int ParseFileByLine(char* buffer, int bufferSize, const ParseFileLine fn, const char* filepath)
{
FILE *fp = NULL;
char *result = NULL;

View File

@@ -6,7 +6,6 @@
#define _LOGGING_H
#include <stdio.h>
#include <stdarg.h>
#include "securec.h"
#include "basic.h"

View File

@@ -125,7 +125,7 @@ static int ParseOneCmdArg(struct CmdArgs *args, char indicator, const char *valu
return 0;
}
static inline bool IsCmdArgsValid(struct CmdArgs *args)
static inline bool IsCmdArgsValid(const struct CmdArgs *args)
{
return (strlen(args->devices) > 0) && (strlen(args->rootfs) > 0) && (args->pid > 0);
}

View File

@@ -8,7 +8,6 @@
#include <sched.h>
#include <fcntl.h>
#include <unistd.h>
#include "basic.h"
#include "securec.h"
#include "logging.h"

View File

@@ -2,11 +2,11 @@
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
* Description: ascend_docker_install工具用于辅助用户安装ascend_docker
*/
#include "cJSON.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "cJSON.h"
#define MAX_JSON_FILE_SIZE 65535
#define NUM_ARGS 4