{"action":"created","issue":{"url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/32","labels_url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/32/comments","events_url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/32/events","html_url":"https://github.com/iscsi-osx/iSCSIInitiator/pull/32","id":130381046,"number":32,"title":"Fix: XCode complains about casting sessionID (short int) to the larger void * type","user":{"login":"BjoKaSH","id":220124,"avatar_url":"https://avatars.githubusercontent.com/u/220124?v=3","gravatar_id":"","url":"https://api.github.com/users/BjoKaSH","html_url":"https://github.com/BjoKaSH","followers_url":"https://api.github.com/users/BjoKaSH/followers","following_url":"https://api.github.com/users/BjoKaSH/following{/other_user}","gists_url":"https://api.github.com/users/BjoKaSH/gists{/gist_id}","starred_url":"https://api.github.com/users/BjoKaSH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BjoKaSH/subscriptions","organizations_url":"https://api.github.com/users/BjoKaSH/orgs","repos_url":"https://api.github.com/users/BjoKaSH/repos","events_url":"https://api.github.com/users/BjoKaSH/events{/privacy}","received_events_url":"https://api.github.com/users/BjoKaSH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-01T14:52:04Z","updated_at":"2016-02-01T16:09:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/pulls/32","html_url":"https://github.com/iscsi-osx/iSCSIInitiator/pull/32","diff_url":"https://github.com/iscsi-osx/iSCSIInitiator/pull/32.diff","patch_url":"https://github.com/iscsi-osx/iSCSIInitiator/pull/32.patch"},"body":"Instead of casting a short int to a pointer (and back), it is cleaner to pass the address of the SID and dereference it in the callback."},"comment":{"url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/comments/178046724","html_url":"https://github.com/iscsi-osx/iSCSIInitiator/pull/32#issuecomment-178046724","issue_url":"https://api.github.com/repos/iscsi-osx/iSCSIInitiator/issues/32","id":178046724,"user":{"login":"BjoKaSH","id":220124,"avatar_url":"https://avatars.githubusercontent.com/u/220124?v=3","gravatar_id":"","url":"https://api.github.com/users/BjoKaSH","html_url":"https://github.com/BjoKaSH","followers_url":"https://api.github.com/users/BjoKaSH/followers","following_url":"https://api.github.com/users/BjoKaSH/following{/other_user}","gists_url":"https://api.github.com/users/BjoKaSH/gists{/gist_id}","starred_url":"https://api.github.com/users/BjoKaSH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BjoKaSH/subscriptions","organizations_url":"https://api.github.com/users/BjoKaSH/orgs","repos_url":"https://api.github.com/users/BjoKaSH/repos","events_url":"https://api.github.com/users/BjoKaSH/events{/privacy}","received_events_url":"https://api.github.com/users/BjoKaSH/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T16:09:58Z","updated_at":"2016-02-01T16:09:58Z","body":"Could be a problem. I had checked the call sequence by reading the code, but I did not pay attention to possible delayed execution in other thread contexts.   So I suggest to postpone this.  Time permitting, I may revisit it later and try to establish if passing the pointer is safe."}}