Skip to content

Commit

Permalink
couple of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Oct 20, 2017
1 parent 74ad986 commit 09a0786
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(slack++ VERSION 0.1 LANGUAGES CXX C)

set(CMAKE_BUILD_TYPE Debug)
# set(CMAKE_BUILD_TYPE Release)
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

include_directories(include src)
Expand Down
1 change: 1 addition & 0 deletions include/WebsocketClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class WebsocketClient {

~WebsocketClient() {
curl_easy_cleanup(curl);
curl_global_cleanup();
}

private:
Expand Down
2 changes: 1 addition & 1 deletion src/SlackUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void SlackUI::main_ui_cycle() {
sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGTERM);
sigprocmask(SIG_BLOCK, &mask, NULL);
main_p[SOCKET_EVT] = (struct pollfd) {
main_p[SIGNAL_EVT] = (struct pollfd) {
.fd = signalfd(-1, &mask, 0),
.events = POLLIN,
};
Expand Down

0 comments on commit 09a0786

Please sign in to comment.