Use official API to <sys/queue.h> instead of groping around inside the data structures.
Use official API to <sys/queue.h> instead of groping around inside the
data structures.

Reviewed by:	imp

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase