Skip to content

Commit

Permalink
Use GINT_TO_POINTER for type conversion
Browse files Browse the repository at this point in the history
Change-Id: I3cb1a6d8f5eacd6e8c91fb75a9a6400d8da6e4b6
  • Loading branch information
isak-jakobsson committed Nov 12, 2024
1 parent 2d1f770 commit 1b7e036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acap_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ static gboolean handle_signals(gpointer signal_num) {
* @brief Initialize signals
*/
static void init_signals(void) {
g_unix_signal_add(SIGINT, handle_signals, gpointer(SIGINT));
g_unix_signal_add(SIGTERM, handle_signals, gpointer(SIGTERM));
g_unix_signal_add(SIGINT, handle_signals, GINT_TO_POINTER(SIGINT));
g_unix_signal_add(SIGTERM, handle_signals, GINT_TO_POINTER(SIGTERM));
}

// Initialize acap-runtime and start gRPC service
Expand Down

0 comments on commit 1b7e036

Please sign in to comment.