Skip to content

Commit 456d40e

Browse files
author
Ivan Stoev
committed
Spelling, also some build fixes.
1 parent c3e4a95 commit 456d40e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

pCloudCC/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ set (SQLITE3_PATH ${CMAKE_SOURCE_DIR}/lib/sqlite)
1313
add_subdirectory(${MBEDTLS_PATH})
1414

1515
include_directories(${SQLITE3_PATH})
16-
add_custom_target(
17-
sqlite3_lib
18-
COMMAND ./configure && make
19-
WORKING_DIRECTORY ${SQLITE3_PATH}
20-
)
16+
# add_custom_target(
17+
# sqlite3_lib
18+
# COMMAND ./configure && make
19+
# WORKING_DIRECTORY ${SQLITE3_PATH}
20+
# )
2121

2222
include_directories(${PCLSYNC_PATH})
2323
# add_custom_target(

pCloudCC/control_tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void process_commands()
7474
}
7575
}
7676

77-
int demonize(bool do_commands) {
77+
int daemonize(bool do_commands) {
7878
pid_t pid, sid;
7979

8080
pid = fork();

pCloudCC/control_tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace control_tools {
3131
int start_crypto(const char * pass);
3232
int stop_crypto();
3333
int finalize();
34-
int demonize(bool do_commands);
34+
int daemonize(bool do_commands);
3535
void process_commands();
3636
}
3737

pCloudCC/main.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char **argv) {
1212
std::cout << "pCloud console client v."<< version << std::endl;
1313
std::string username;
1414
std::string password;
15-
bool demon = false;
15+
bool daemon = false;
1616
bool commands = false;
1717
bool commands_only = false;
1818

@@ -24,10 +24,10 @@ int main(int argc, char **argv) {
2424
("password,p", po::value<std::string>(&password), "pCloud account password")
2525
("crypto,c", po::value<std::string>(), "Crypto password")
2626
("passascrypto,s", po::value<std::string>(), "Use user password as crypto password also.")
27-
("deamonize,d", po::bool_switch(&demon), "Demonize the process.")
28-
("commands ,o", po::bool_switch(&commands), "Parent stays alive and processes command after demoziation. ")
27+
("daemonize,d", po::bool_switch(&daemon), "Daemonize the process.")
28+
("commands ,o", po::bool_switch(&commands), "Parent stays alive and processes commands. ")
2929
("mountpoint,m", po::value<std::string>(), "Mount point where drive to be mounted.")
30-
("commands_only,k", po::bool_switch(&commands_only),"Demon already started pass only commands")
30+
("commands_only,k", po::bool_switch(&commands_only),"Daemon already started pass only commands")
3131
;
3232

3333
po::variables_map vm;
@@ -41,7 +41,7 @@ int main(int argc, char **argv) {
4141

4242
for (int i = 1; i < argc;++i)
4343
memset(argv[i],0,strlen(argv[i]));
44-
if (demon){
44+
if (daemon){
4545
strncpy(argv[0], "pCloudDriveDeamon", strlen(argv[0]));
4646
} else {
4747
strncpy(argv[0], "pCloudDrive", strlen(argv[0]));
@@ -81,8 +81,8 @@ int main(int argc, char **argv) {
8181
}
8282

8383

84-
if (demon)
85-
ct::demonize(commands);
84+
if (daemon)
85+
ct::daemonize(commands);
8686
else {
8787
if (!console_client::clibrary::init())
8888
sleep(360000);

0 commit comments

Comments
 (0)