]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
finiky compiler contd
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Feb 2008 00:08:06 +0000 (00:08 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Feb 2008 00:08:06 +0000 (00:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7754 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index 77e912e65d1aa4e46cad7fd4ed0896fe76fc6c91..00ee1e5a2756a8f7507081f7818e41c0b85fe6ed 100644 (file)
@@ -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");
        }