Merged revisions 1003-1016 via svnmerge from
svn://svn.open-ils.org/OpenSRF/trunk
........
r1006 | miker | 2007-07-06 12:56:32 -0400 (Fri, 06 Jul 2007) | 1 line
adding COPYING and LICENSE.txt
........
r1013 | miker | 2007-07-08 13:40:23 -0400 (Sun, 08 Jul 2007) | 19 lines
Patch from Scott McKellar for declaration cleanup and improved error handling:
1. I added the const qualifier to several function parameters.
2. I replaced inet_addr() with inet_aton().
According to the man page, inet_addr() is obsolete. It reports an
error by returning -1, which however is a valid IP address
(255.255.255.255). inet_aton reports errors in a more robust way.
3. I check the return value from inet_aton(). If the input address is
invalid, I log a message and return -1.
Without such a check, an invalid listener address leads to a server
that is completely unresponsive. The user has no way to know what's
wrong unless he spots the mistake himself in the relevant
configuration file.
........
r1015 | erickson | 2007-07-08 13:51:11 -0400 (Sun, 08 Jul 2007) | 1 line
repaired conflicting declarations
........
git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/new-json2@1017
9efc2488-bf62-4759-914b-
345cdb29e865