47 lines
1.9 KiB
Diff
47 lines
1.9 KiB
Diff
From d0a258a731d2cd4ad057c02a7d91762380b2c906 Mon Sep 17 00:00:00 2001
|
|
From: lifeng68 <lifeng68@huawei.com>
|
|
Date: Mon, 9 Nov 2020 17:32:16 +0800
|
|
Subject: [PATCH 24/28] clean code: remove unused ";" in code
|
|
|
|
Signed-off-by: lifeng68 <lifeng68@huawei.com>
|
|
---
|
|
src/daemon/entry/connect/grpc/grpc_containers_service.cc | 2 --
|
|
src/daemon/executor/container_cb/execution_network.c | 1 -
|
|
2 files changed, 3 deletions(-)
|
|
|
|
diff --git a/src/daemon/entry/connect/grpc/grpc_containers_service.cc b/src/daemon/entry/connect/grpc/grpc_containers_service.cc
|
|
index 4e8f55d..123fee8 100644
|
|
--- a/src/daemon/entry/connect/grpc/grpc_containers_service.cc
|
|
+++ b/src/daemon/entry/connect/grpc/grpc_containers_service.cc
|
|
@@ -340,7 +340,6 @@ Status ContainerServiceImpl::RemoteStart(ServerContext *context,
|
|
|
|
if (sem_init(&sem, 0, 0) != 0) {
|
|
return grpc::Status(grpc::StatusCode::UNKNOWN, "Semaphore initialization failed");
|
|
- ;
|
|
}
|
|
|
|
int read_pipe_fd[2];
|
|
@@ -867,7 +866,6 @@ Status ContainerServiceImpl::AttachInit(ServerContext *context, service_executor
|
|
if (sem_init(sem_stderr, 0, 0) != 0) {
|
|
free_container_attach_request(*req);
|
|
return grpc::Status(grpc::StatusCode::UNKNOWN, "Semaphore initialization failed");
|
|
- ;
|
|
}
|
|
|
|
if ((pipe2(pipefd, O_NONBLOCK | O_CLOEXEC)) < 0) {
|
|
diff --git a/src/daemon/executor/container_cb/execution_network.c b/src/daemon/executor/container_cb/execution_network.c
|
|
index f15707e..6b6c626 100644
|
|
--- a/src/daemon/executor/container_cb/execution_network.c
|
|
+++ b/src/daemon/executor/container_cb/execution_network.c
|
|
@@ -965,7 +965,6 @@ out:
|
|
static int write_default_resolve(const char *file_path)
|
|
{
|
|
const char *default_ipv4_dns = "\nnameserver 8.8.8.8\nnameserver 8.8.4.4\n";
|
|
- ;
|
|
|
|
return util_write_file(file_path, default_ipv4_dns, strlen(default_ipv4_dns), NETWORK_MOUNT_FILE_MODE);
|
|
}
|
|
--
|
|
2.20.1
|
|
|