syslogd: Use common nomenclature for next pointer
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
6350bf2474
commit
4192e543a5
@ -187,7 +187,7 @@ static int addpeer(struct peer *pe0)
|
||||
if (pe == NULL)
|
||||
err(1, "malloc failed");
|
||||
*pe = *pe0;
|
||||
SIMPLEQ_INSERT_TAIL(&pqueue, pe, next);
|
||||
SIMPLEQ_INSERT_TAIL(&pqueue, pe, pe_link);
|
||||
|
||||
return (0);
|
||||
}
|
||||
@ -2122,7 +2122,7 @@ void init(void)
|
||||
/* Only once at startup */
|
||||
once = 0;
|
||||
|
||||
SIMPLEQ_FOREACH(pe, &pqueue, next) {
|
||||
SIMPLEQ_FOREACH(pe, &pqueue, pe_link) {
|
||||
if (pe->pe_name && pe->pe_name[0] == '/')
|
||||
create_unix_socket(pe);
|
||||
else if (SecureMode < 2)
|
||||
|
@ -186,11 +186,11 @@
|
||||
* Struct to hold records of peers and sockets
|
||||
*/
|
||||
struct peer {
|
||||
SIMPLEQ_ENTRY(peer) pe_link;
|
||||
const char *pe_name;
|
||||
const char *pe_serv;
|
||||
mode_t pe_mode;
|
||||
|
||||
SIMPLEQ_ENTRY(peer) next;
|
||||
int pe_sock;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user