[OPEN-ILS-DEV] PATCH: osrf_prefork.[ch] (miscellaneous)

Scott McKellar mck9 at swbell.net
Sun Jan 6 18:04:37 EST 2008


These patches are a code cleanup, and should not affect functionality.

1. I moved almost everything from the header file into the
implementation file, since it isn't referenced elsewhere.  All that's
left is one function prototype and a series of nested #includes.

2. I added compilation guards to the header.

3. Except for osrf_prefork_run(), all functions are now static, as is
the child_dead variable.

4. I commented out the MAX_BUFSIZE macro, since it isn't used.

5. I removed the declaration of main(), which seemed rather pointless.

6. I added the const qualifier to the parameters of osrf_prefork_run()
and osrf_prefork_routers().

7. I made sure that all members were explicitly initialized when 
creating a prefork_simple or a prefork_child.

8. I commented out both the prototype and the definition of
find_prefork_child(), since we don't call it anywhere.

----------

The header file retains a long list of nested  #includes, of which 
none is necessary for the remaining function prototype.  They should
all go into the implementation file.  Any other implmentation file
that needs them (and doesn't already have them) should #include them
itself as needed.  However that change would involve more untangling
than I'm up for at the moment.

Scott McKellar
http://home.swbell.net/mck9/ct/

Developer's Certificate of Origin 1.1 By making a contribution to
this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license indicated
in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source license
and I have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the
same open source license (unless I am permitted to submit under a
different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person
who certified (a), (b) or (c) and I have not modified it; and

(d) In the case of each of (a), (b), or (c), I understand and agree
that this project and the contribution are public and that a record
of the contribution (including all personal information I submit
with it, including my sign-off) is maintained indefinitely and may
be redistributed consistent with this project or the open source
license indicated in the file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osrf_prefork_h_1.patch
Type: text/x-patch
Size: 2923 bytes
Desc: 1932412270-osrf_prefork_h_1.patch
Url : http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080106/68c34e77/osrf_prefork_h_1-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osrf_prefork_c_2.patch
Type: text/x-patch
Size: 10930 bytes
Desc: 3232367736-osrf_prefork_c_2.patch
Url : http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080106/68c34e77/osrf_prefork_c_2-0001.bin


More information about the Open-ils-dev mailing list