Merged revisions 1003-1016 via svnmerge from
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 8 Jul 2007 18:29:13 +0000 (18:29 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 8 Jul 2007 18:29:13 +0000 (18:29 +0000)
commitb6044b9b0d3d4bafe84c2019404773ce37f854f4
tree3e78b1b6229fe15e60bc6b79e7c46c0849dbbc90
parenta813eab37eef2ec9fb9e77c013d4c7d0d755b765
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
COPYING [new file with mode: 0644]
LICENSE.txt [new file with mode: 0644]
src/libopensrf/socket_bundle.c