nickpaulson/NPReachability — pull request #1 by IAmEternaL (2011-10-16 08:04:13+00:00)
Title: Improved singleton implementation, fixed few minor issues.

Hello Nick,

First off thank you for sharing your improved version of Reachability class.

As for the real reason I am writing it is that I decided to use your code in my new project and quickly learned that not generates a couple of warning on new project's default settings. I am a little bit crazy about having no issues in my projects whatsoever so I went ahead and fixed these minor problems. I also improved the singleton implementation a little bit if you do not mind. Please see the commit description below.

Improvement of singleton implementation included making it thread-safe
and simpler and by simpler I mean without such obsolete methods as
copy, dealloc, etc.
As for the minor issues they were semantic but still caused warnings on
compilation, specifically I added missing prototypes for C functions.

Best regards,
Ivan Karpan