diff --git a/src/switch.c b/src/switch.c index 77e912e65d..00ee1e5a27 100644 --- a/src/switch.c +++ b/src/switch.c @@ -93,7 +93,7 @@ static int freeswitch_kill_background() } /* pull the pid from the file */ - if (fscanf(f, "%d", (int *)&pid)!=1) { + if (fscanf(f, "%d", (int *)(intptr_t)&pid)!=1) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"Unable to get the pid!\n"); }