rename .hpp to .h

This commit is contained in:
fancy
2020-05-18 04:25:57 +08:00
committed by fancy
parent 619fcaae8e
commit 051742eef1
19 changed files with 146 additions and 166 deletions

View File

@@ -1,4 +1,4 @@
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/src)
add_executable(cgattach cgattach.cpp)
add_executable(cgattach cgattach.cpp ../src/cgroup_attach.cpp ../src/common.cpp)
install(TARGETS cgattach DESTINATION /usr/bin PERMISSIONS ${basic_permission})

View File

@@ -1,6 +1,7 @@
#include "cgroup_attach.hpp"
#include "common.hpp"
#include "cgroup_attach.h"
#include "common.h"
#include <cstdlib>
#include <unistd.h>
using namespace std;
void print_usage() { fprintf(stdout, "usage: cgattach <pid> <cgroup>\n"); }